A Tour of Morfa

Floating point types

The two floating point types float32 and float64 represent 32 and 64 bit floating point values, respectively, in the IEEE-754 format. The type float is an alias for float64.

The default values of the floating point types are float32.nan and float64.nan, representing undefined (not a number) values. Besides NaN, both types have another special value that represents infinity: float32.infinity and float64.infinity.

Floating point literals