Skip to main content

INFINITY

Constant INFINITY 

1.0.0 · Source
pub const INFINITY: f64 = f64::INFINITY; // +Inf_f64
👎Deprecated since 1.99.0:

replaced by the INFINITY associated constant on f64

Expand description

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

§Examples

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

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