Constant INFINITY

Deprecated since 1.99.0: replaced by the `INFINITY` associated constant on `f32`
pub const INFINITY: f32 = +Inf_f32;

Infinity (∞). Use f32::INFINITY instead.

Examples

// deprecated way
# #[allow(deprecated)]
let inf = std::f32::INFINITY;

// intended way
let inf = f32::INFINITY;