Std.Float (Cure Standard Library v0.37.2)

View Source

The primitive machine floating-point number.

Float is an irreducible BEAM float — not an inductive, not a postulate. Floating-point operators (+.-style builtin ops) act on it; this module gives the type itself a visible, documented home.

Examples

use Std.Float

let pi: Float = 3.14
pi + 1.0                                 # => 4.14