@@ -38,14 +38,27 @@ pub const EPSILON: f64 = 2.2204460492503131e-16_f64;
3838
3939/// Smallest finite f64 value
4040#[ stable( feature = "rust1" , since = "1.0.0" ) ]
41+ #[ deprecated( since = "1.0.0" , reason = "use `std::f64::MIN`" ) ]
4142pub const MIN_VALUE : f64 = -1.7976931348623157e+308_f64 ;
4243/// Smallest positive, normalized f64 value
4344#[ stable( feature = "rust1" , since = "1.0.0" ) ]
45+ #[ deprecated( since = "1.0.0" , reason = "use `std::f64::MIN_POSITIVE`" ) ]
4446pub const MIN_POS_VALUE : f64 = 2.2250738585072014e-308_f64 ;
4547/// Largest finite f64 value
4648#[ stable( feature = "rust1" , since = "1.0.0" ) ]
49+ #[ deprecated( since = "1.0.0" , reason = "use `std::f64::MAX`" ) ]
4750pub const MAX_VALUE : f64 = 1.7976931348623157e+308_f64 ;
4851
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+
4962#[ unstable( feature = "core" , reason = "pending integer conventions" ) ]
5063pub const MIN_EXP : int = -1021 ;
5164#[ unstable( feature = "core" , reason = "pending integer conventions" ) ]
@@ -222,17 +235,17 @@ impl Float for f64 {
222235 #[ inline]
223236 #[ unstable( feature = "core" ) ]
224237 #[ deprecated( since = "1.0.0" ) ]
225- fn min_value ( ) -> f64 { MIN_VALUE }
238+ fn min_value ( ) -> f64 { MIN }
226239
227240 #[ inline]
228241 #[ unstable( feature = "core" ) ]
229242 #[ 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 }
231244
232245 #[ inline]
233246 #[ unstable( feature = "core" ) ]
234247 #[ deprecated( since = "1.0.0" ) ]
235- fn max_value ( ) -> f64 { MAX_VALUE }
248+ fn max_value ( ) -> f64 { MAX }
236249
237250 /// Returns the mantissa, exponent and sign as integers.
238251 fn integer_decode ( self ) -> ( u64 , i16 , i8 ) {
0 commit comments