W3cubDocs

/Rust

Constant std::f64::MANTISSA_DIGITS

pub const MANTISSA_DIGITS: u32 = f64::MANTISSA_DIGITS; // 53u32

Number of significant digits in base 2. Use f64::MANTISSA_DIGITS instead.

Examples

// deprecated way
let d = std::f64::MANTISSA_DIGITS;

// intended way
let d = f64::MANTISSA_DIGITS;

© 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/f64/constant.MANTISSA_DIGITS.html