Constant INFINITY

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

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

Examples

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

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