no_std_compat::f32

Constant NEG_INFINITY

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

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

ยงExamples

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

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