File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,11 @@ pub const MANTISSA_DIGITS: u32 = 24;
3333#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3434pub const DIGITS : u32 = 6 ;
3535
36- /// Difference between `1.0` and the next largest representable number.
36+ /// [Machine epsilon] value for `f32`.
37+ ///
38+ /// This is the difference between `1.0` and the next largest representable number.
39+ ///
40+ /// [Machine epsilon]: https://en.wikipedia.org/wiki/Machine_epsilon
3741#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3842pub const EPSILON : f32 = 1.19209290e-07_f32 ;
3943
Original file line number Diff line number Diff line change @@ -33,7 +33,11 @@ pub const MANTISSA_DIGITS: u32 = 53;
3333#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3434pub const DIGITS : u32 = 15 ;
3535
36- /// Difference between `1.0` and the next largest representable number.
36+ /// [Machine epsilon] value for `f64`.
37+ ///
38+ /// This is the difference between `1.0` and the next largest representable number.
39+ ///
40+ /// [Machine epsilon]: https://en.wikipedia.org/wiki/Machine_epsilon
3741#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3842pub const EPSILON : f64 = 2.2204460492503131e-16_f64 ;
3943
You can’t perform that action at this time.
0 commit comments