method f64.isInfinite
Whether the value is positive or negative infinity.
Example:
fn main() io {
let zero: f64 = 0.0
let inf = 1.0 / zero
print("{inf.isInfinite()} {(1.5 as f64).isInfinite()}")
}Output
true false
pub(api) fn isInfinite() -> boolComplexity. O(1).
Since. 1.0.0-beta
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/numbers.oxl:4135