Constant core::f64::INFINITY1.0.0[][src]

pub const INFINITY: f64 = f64::INFINITY; // +Inff64
👎 Deprecating in a future Rust version:

replaced by the INFINITY associated constant on f64

This is supported on non-crate feature miri-test-libstd or test or doctest only.
Expand description

Infinity (∞). Use f64::INFINITY instead.

Examples

// deprecated way
let inf = std::f64::INFINITY;

// intended way
let inf = f64::INFINITY;
Run