@@ -38,14 +38,27 @@ pub const EPSILON: f64 = 2.2204460492503131e-16_f64;
38
38
39
39
/// Smallest finite f64 value
40
40
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
41
+ #[ deprecated( since = "1.0.0" , reason = "use `std::f64::MIN`" ) ]
41
42
pub const MIN_VALUE : f64 = -1.7976931348623157e+308_f64 ;
42
43
/// Smallest positive, normalized f64 value
43
44
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
45
+ #[ deprecated( since = "1.0.0" , reason = "use `std::f64::MIN_POSITIVE`" ) ]
44
46
pub const MIN_POS_VALUE : f64 = 2.2250738585072014e-308_f64 ;
45
47
/// Largest finite f64 value
46
48
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
49
+ #[ deprecated( since = "1.0.0" , reason = "use `std::f64::MAX`" ) ]
47
50
pub const MAX_VALUE : f64 = 1.7976931348623157e+308_f64 ;
48
51
52
+ /// Smallest finite f64 value
53
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
54
+ pub const MIN : f64 = -1.7976931348623157e+308_f64 ;
55
+ /// Smallest positive, normalized f64 value
56
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
57
+ pub const MIN_POSITIVE : f64 = 2.2250738585072014e-308_f64 ;
58
+ /// Largest finite f64 value
59
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
60
+ pub const MAX : f64 = 1.7976931348623157e+308_f64 ;
61
+
49
62
#[ unstable( feature = "core" , reason = "pending integer conventions" ) ]
50
63
pub const MIN_EXP : int = -1021 ;
51
64
#[ unstable( feature = "core" , reason = "pending integer conventions" ) ]
@@ -222,17 +235,17 @@ impl Float for f64 {
222
235
#[ inline]
223
236
#[ unstable( feature = "core" ) ]
224
237
#[ deprecated( since = "1.0.0" ) ]
225
- fn min_value ( ) -> f64 { MIN_VALUE }
238
+ fn min_value ( ) -> f64 { MIN }
226
239
227
240
#[ inline]
228
241
#[ unstable( feature = "core" ) ]
229
242
#[ deprecated( since = "1.0.0" ) ]
230
- fn min_pos_value ( _: Option < f64 > ) -> f64 { MIN_POS_VALUE }
243
+ fn min_pos_value ( _: Option < f64 > ) -> f64 { MIN_POSITIVE }
231
244
232
245
#[ inline]
233
246
#[ unstable( feature = "core" ) ]
234
247
#[ deprecated( since = "1.0.0" ) ]
235
- fn max_value ( ) -> f64 { MAX_VALUE }
248
+ fn max_value ( ) -> f64 { MAX }
236
249
237
250
/// Returns the mantissa, exponent and sign as integers.
238
251
fn integer_decode ( self ) -> ( u64 , i16 , i8 ) {
0 commit comments