]> git.lizzy.rs Git - rust.git/commitdiff
Correct MIN_EXP docs and improve EPSILON
authorOliver Middleton <olliemail27@gmail.com>
Thu, 30 Jun 2016 07:30:30 +0000 (08:30 +0100)
committerOliver Middleton <olliemail27@gmail.com>
Thu, 30 Jun 2016 07:30:30 +0000 (08:30 +0100)
src/libcore/num/f32.rs
src/libcore/num/f64.rs

index 0caa27f21dc3b927afea6d1e56c18e131ae4f8c9..c408b10c399f738449e07f91f841ed60a07bdf27 100644 (file)
@@ -31,7 +31,7 @@
 #[stable(feature = "rust1", since = "1.0.0")]
 pub const DIGITS: u32 = 6;
 
-/// A very small number.
+/// Difference between `1.0` and the next largest representable number.
 #[stable(feature = "rust1", since = "1.0.0")]
 pub const EPSILON: f32 = 1.19209290e-07_f32;
 
@@ -45,7 +45,7 @@
 #[stable(feature = "rust1", since = "1.0.0")]
 pub const MAX: f32 = 3.40282347e+38_f32;
 
-/// Minimum possible normal power of 2 exponent.
+/// One greater than the minimum possible normal power of 2 exponent.
 #[stable(feature = "rust1", since = "1.0.0")]
 pub const MIN_EXP: i32 = -125;
 /// Maximum possible power of 2 exponent.
index 766e83a895378bb22707573dd852b1f3b0563839..006e9d1264d7c954b44bcc47ab86c823da155055 100644 (file)
@@ -31,7 +31,7 @@
 #[stable(feature = "rust1", since = "1.0.0")]
 pub const DIGITS: u32 = 15;
 
-/// A very small number.
+/// Difference between `1.0` and the next largest representable number.
 #[stable(feature = "rust1", since = "1.0.0")]
 pub const EPSILON: f64 = 2.2204460492503131e-16_f64;
 
@@ -45,7 +45,7 @@
 #[stable(feature = "rust1", since = "1.0.0")]
 pub const MAX: f64 = 1.7976931348623157e+308_f64;
 
-/// Minimum possible normal power of 2 exponent.
+/// One greater than the minimum possible normal power of 2 exponent.
 #[stable(feature = "rust1", since = "1.0.0")]
 pub const MIN_EXP: i32 = -1021;
 /// Maximum possible power of 2 exponent.