True when x is neither NaN nor infinite.
assert(is_finite(1.0) && is_finite(FLOAT32_MAX));
assert(!is_finite(FLOAT32_INFINITY) && !is_finite(FLOAT32_NAN));is_finite :: (x: float64) -> bool
Whether x is neither NaN nor infinite.
Parameters
- x: float64
- the value to test.
Returns
- bool
is_finite :: (x: float) -> bool
Whether x is neither NaN nor infinite.
Parameters
- x: float
- the value to test.
Returns
- bool