Constant std::f32::INFINITY

1.0.0 · source ·
pub const INFINITY: f32 = f32::INFINITY; // +Inff32
👎Deprecating in a future Rust version: replaced by the INFINITY associated constant on f32
Expand description

无限 (∞)。 请改用 f32::INFINITY

Examples

// 弃用的方式
let inf = std::f32::INFINITY;

// 预期的方式
let inf = f32::INFINITY;
Run