W3cubDocs

/Rust

Constant std::f32::NEG_INFINITY

pub const NEG_INFINITY: f32 = f32::NEG_INFINITY; // -Inff32

Negative infinity (−∞). Use f32::NEG_INFINITY instead.

Examples

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

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

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/f32/constant.NEG_INFINITY.html