float
The float
module contains functions to work with floats.
Functions
is_finite(number)
Tests if a number is finite. Returns false for NaN
and Infinity
.
Always retrusn true for non float numerics.
Returns an bool
.
Errors on non numeric types
is_infinite(number)
Tests if a number is Infinity
.
Always retrusn false for non float numerics.
Returns an bool
.
Errors on non numeric types
is_nan(number)
Tests if a number is NaN
.
Always retrusn false for non float numerics.
Returns an bool
.
Errors on non numeric types
parse(string)
Parses a string as a float.
Returns an float
.