Constant DIGITS

Deprecated since 1.99.0: replaced by the `DIGITS` associated constant on `f32`
pub const DIGITS: u32 = 6u32;

Approximate number of significant digits in base 10. Use f32::DIGITS instead.

Examples

// deprecated way
# #[allow(deprecated)]
let d = std::f32::DIGITS;

// intended way
let d = f32::DIGITS;