Constant core::f32::NEG_INFINITY

1.0.0 · source ·
pub const NEG_INFINITY: f32 = f32::NEG_INFINITY; // -Inff32
👎Deprecating in a future Rust version: replaced by the NEG_INFINITY associated constant on f32
Expand description

负无穷大 (−∞)。 请改用 f32::NEG_INFINITY

Examples

// 弃用的方式
let ninf = std::f32::NEG_INFINITY;

// 预期的方式
let ninf = f32::NEG_INFINITY;
Run