W3cubDocs

/Rust

Constant std::f64::NEG_INFINITY

pub const NEG_INFINITY: f64 = f64::NEG_INFINITY; // -Inff64

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

Examples

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

// intended way
let ninf = f64::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/f64/constant.NEG_INFINITY.html