Basis entryBasics.isNaN
Tests (5)
- elm / FloatEdgeTestFloat edge cases: `round` on halves, NaN in equality, `min` and `compare`, `truncate` of NaN, and an Int power beyond 2^32.
- elm-core / BasicsIsNaNTest`isNaN` is true for `0 / 0` and false for 42.0, and `isInfinite` is true for `1 / 0` and false for 42.0.
- elm-core / CoreIssue1080ClampNanTest`clamp -100 100` of NaN returns NaN.
- elm-core / FloatMathIsNaNTest`isNaN (0 / 0)` is True.
- elm-core / FloatNaNTest`isNaN` is True for `0.0 / 0.0` and False for 3.14, and NaN plus 1.0 is NaN: the book's `add` gives NaN when either argument is NaN.
Discussions
Discuss this basis entry·Search the discussions on GitHub
Discussions are on GitHub; one about this basis entry has [b:Basics.isNaN] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.