Constant kvarn::prelude::utils::prelude::compact_str::core::f32::EPSILON

1.0.0 · source ·
pub const EPSILON: f32 = f32::EPSILON; // 1.1920929E-7f32
👎Deprecating in a future Rust version: replaced by the <code>EPSILON</code> associated constant on <code>f32</code>
Available on non-crate feature miri-test-libstd only.
Expand description

Machine epsilon value for f32. Use f32::EPSILON instead.

This is the difference between 1.0 and the next larger representable number.

Examples

// deprecated way
let e = std::f32::EPSILON;

// intended way
let e = f32::EPSILON;