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

pub const EPSILON: f64 = f64::EPSILON; // 2.2204460492503131E-16f64
👎 Deprecating in a future Rust version:

replaced by the EPSILON associated constant on f64

Expand description

Machine epsilon f64 的值。 请改用 f64::EPSILON

这是 1.0 与下一个较大的可表示数字之间的差异。

Examples

// 弃用的方式
let e = std::f64::EPSILON;

// 预期的方式
let e = f64::EPSILON;
Run