Add more functionality to floating point number type
Open
- Dominant language
- Standard ML
- Stars
- 1.2k
- Forks
- 104
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 16
Description
Currently, the only way to create floating point numbers is to parse them from string. Pretty much the only useful things I can do with these floating point numbers is arithmetic (addition, multiplication, subtraction and division), as well as turning them back into strings. In this sense they're a finite precision alternative to the built-in rational type, albeit with less operations.
I propose adding the following (at the very least):
- Double.exp and Double.log
- Double.floor (and/or truncate, or something)
- Double.toInt
Here is a related issue: https://github.com/CakeML/cakeml/issues/824.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.