Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

float conversion and int64 (also int32) #2419

Closed
vicuna opened this issue Apr 17, 2000 · 2 comments
Closed

float conversion and int64 (also int32) #2419

vicuna opened this issue Apr 17, 2000 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 17, 2000

Original bug ID: 83
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hello,

since it seems that the next release (3.00) won't be far in the future
(Changelog updated), I just wondered whether it is my oversight that I
can't find any other way to portably convert int64 (but also int32) to
floats other than by converting them to intermediate strings...

Best regards,
Markus Mottl

--
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl

@vicuna
Copy link
Author

vicuna commented Apr 18, 2000

Comment author: administrator

since it seems that the next release (3.00) won't be far in the future
(Changelog updated), I just wondered whether it is my oversight that I
can't find any other way to portably convert int64 (but also int32) to
floats other than by converting them to intermediate strings...

That was an oversight. There are so many potentially useful
conversions that I forgot about floats. I just added to_float and
from_float conversions to the Int32, Int64 and Nativeint modules.

Best regards,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Apr 20, 2000

Comment author: administrator

Added missing conversions 2000-04-18. -Xavier

@vicuna vicuna closed this as completed Apr 20, 2000
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant