This module provides various combinations of explicit floating point
operations.
The are three supported rounding variants:
- ceil (rounding towards positive infinity)
- floor (rounding towards negative infinity)
- truncate (rounding towards zero)
Operators:
- + add
- - subtract
- * multiplicate
- / divide
- sqrt squareRoot
- id converting numbers between formats
The floating point data types:
The behaviour for
NaNs is very hardware dependent. In case an
operation would result in a
NaN the corresponding
round-to-nearest-even-on-tie variant is used to get the result.