Constant std::f64::DIGITS1.0.0[][src]

pub const DIGITS: u32 = f64::DIGITS; // 0x0000_000fu32
👎 Deprecating in a future Rust version:

replaced by the DIGITS associated constant on f64

Expand description

以 10 为基数的有效位数的大概数字。 请改用 f64::DIGITS

Examples

// 弃用的方式
let d = std::f64::DIGITS;

// 预期的方式
let d = f64::DIGITS;
Run