pub const DIGITS: u32 = f32::DIGITS; // 6u32
👎Deprecating in a future Rust version: replaced by the <code>DIGITS</code> associated constant on <code>f32</code>
Available on non-crate feature miri-test-libstd only.
Expand description

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

Examples

// deprecated way
let d = std::f32::DIGITS;

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