pub const INFINITY: f32 = f32::INFINITY; // +Inf_f32
👎Deprecating in a future version: replaced by the
INFINITY
associated constant on f32
Expand description
Infinity (∞).
Use f32::INFINITY
instead.
§Examples
// deprecated way
let inf = std::f32::INFINITY;
// intended way
let inf = f32::INFINITY;
Run