OxL Reference

method f32.isInfinite

Whether the value is positive or negative infinity.

Example:

oxl✓ checked in CI
fn main() io {
  let zero: f32 = 0.0
  let inf = 1.0 / zero
  print("{inf.isInfinite()} {(1.5 as f32).isInfinite()}")
}
Output
true false
pub(api) fn isInfinite() -> bool

Complexity. O(1).

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/numbers.oxl:4410

See also