Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Float documentation and unit tests (#455)
Improve `Float.mo`: * Documentation * Unit tests Issues detected while refactoring: * dfinity/motoko#3646 * dfinity/motoko#3647 Other possible areas of improvements for `Float`: * `isNaN()` function is missing * `equals()` comparison should consider numerical errors, by requiring an epsilon argument. * Positive infinity and negative infinity constants are missing. * `compare` function does not have a total order and is inconsistent, e.g. `compare(NaN, NaN) == #greater`. * `neq` function has a typo. Rename to `neg` The suggestions for improvement are summarized in issue #456
- Loading branch information