pub const INFINITY: f32 = f32::INFINITY; // +Inff32
Infinity (∞). Use f32::INFINITY
instead.
// deprecated way let inf = std::f32::INFINITY; // intended way let inf = f32::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/f32/constant.INFINITY.html