no_std_compat::f64

Constant INFINITY

1.0.0 ยท Source
pub const INFINITY: f64 = f64::INFINITY; // +Inf_f64
๐Ÿ‘ŽDeprecating in a future version: replaced by the INFINITY associated constant on f64
Expand description

Infinity (โˆž). Use f64::INFINITY instead.

ยงExamples

// deprecated way
let inf = std::f64::INFINITY;

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