Basis entryBasics.floor
Tests (3)
- elm-core / FloatFloorTest`floor` rounds a `Float` down towards negative infinity, for positive, whole and negative values.
- elm-core / FloorToIntTest`floor` rounds a Float down to an Int: 2.7 gives 2 and -2.3 gives -3.
- elm-core / StandardA44RoundNonFiniteTest`round`, `floor` and `ceiling` of NaN are `0`, and of an infinity an Int.
Discussions
Discuss this basis entry·Search the discussions on GitHub
Discussions are on GitHub; one about this basis entry has [b:Basics.floor] 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.