Constant INFINITY

const INFINITY: f32 = +Inf_f32

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

Examples

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

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