core::f32

Constant INFINITY

1.0.0 ยท source
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;