core::f64

Constant NEG_INFINITY

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

Negative infinity (โˆ’โˆž). Use f64::NEG_INFINITY instead.

ยงExamples

// deprecated way
let ninf = std::f64::NEG_INFINITY;

// intended way
let ninf = f64::NEG_INFINITY;