@@ -17,17 +17,21 @@ use crate::mem;
17
17
use crate :: num:: FpCategory ;
18
18
19
19
/// The radix or base of the internal representation of `f32`.
20
+ /// Use [`f32::RADIX`](../../std/primitive.f32.html#associatedconstant.RADIX) instead.
20
21
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
21
22
pub const RADIX : u32 = f32:: RADIX ;
22
23
23
24
/// Number of significant digits in base 2.
25
+ /// Use [`f32::MANTISSA_DIGITS`](../../std/primitive.f32.html#associatedconstant.MANTISSA_DIGITS) instead.
24
26
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
25
27
pub const MANTISSA_DIGITS : u32 = f32:: MANTISSA_DIGITS ;
26
28
/// Approximate number of significant digits in base 10.
29
+ /// Use [`f32::DIGITS`](../../std/primitive.f32.html#associatedconstant.DIGITS) instead.
27
30
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
28
31
pub const DIGITS : u32 = f32:: DIGITS ;
29
32
30
33
/// [Machine epsilon] value for `f32`.
34
+ /// Use [`f32::EPSILON`](../../std/primitive.f32.html#associatedconstant.EPSILON) instead.
31
35
///
32
36
/// This is the difference between `1.0` and the next larger representable number.
33
37
///
@@ -36,36 +40,46 @@ pub const DIGITS: u32 = f32::DIGITS;
36
40
pub const EPSILON : f32 = f32:: EPSILON ;
37
41
38
42
/// Smallest finite `f32` value.
43
+ /// Use [`f32::MIN`](../../std/primitive.f32.html#associatedconstant.MIN) instead.
39
44
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
40
45
pub const MIN : f32 = f32:: MIN ;
41
46
/// Smallest positive normal `f32` value.
47
+ /// Use [`f32::MIN_POSITIVE`](../../std/primitive.f32.html#associatedconstant.MIN_POSITIVE) instead.
42
48
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
43
49
pub const MIN_POSITIVE : f32 = f32:: MIN_POSITIVE ;
44
50
/// Largest finite `f32` value.
51
+ /// Use [`f32::MAX`](../../std/primitive.f32.html#associatedconstant.MAX) instead.
45
52
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
46
53
pub const MAX : f32 = f32:: MAX ;
47
54
48
55
/// One greater than the minimum possible normal power of 2 exponent.
56
+ /// Use [`f32::MIN_EXP`](../../std/primitive.f32.html#associatedconstant.MIN_EXP) instead.
49
57
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
50
58
pub const MIN_EXP : i32 = f32:: MIN_EXP ;
51
59
/// Maximum possible power of 2 exponent.
60
+ /// Use [`f32::MAX_EXP`](../../std/primitive.f32.html#associatedconstant.MAX_EXP) instead.
52
61
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
53
62
pub const MAX_EXP : i32 = f32:: MAX_EXP ;
54
63
55
64
/// Minimum possible normal power of 10 exponent.
65
+ /// Use [`f32::MIN_10_EXP`](../../std/primitive.f32.html#associatedconstant.MIN_10_EXP) instead.
56
66
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
57
67
pub const MIN_10_EXP : i32 = f32:: MIN_10_EXP ;
58
68
/// Maximum possible power of 10 exponent.
69
+ /// Use [`f32::MAX_10_EXP`](../../std/primitive.f32.html#associatedconstant.MAX_10_EXP) instead.
59
70
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
60
71
pub const MAX_10_EXP : i32 = f32:: MAX_10_EXP ;
61
72
62
73
/// Not a Number (NaN).
74
+ /// Use [`f32::NAN`](../../std/primitive.f32.html#associatedconstant.NAN) instead.
63
75
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
64
76
pub const NAN : f32 = f32:: NAN ;
65
77
/// Infinity (∞).
78
+ /// Use [`f32::INFINITY`](../../std/primitive.f32.html#associatedconstant.INFINITY) instead.
66
79
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
67
80
pub const INFINITY : f32 = f32:: INFINITY ;
68
81
/// Negative infinity (−∞).
82
+ /// Use [`f32::NEG_INFINITY`](../../std/primitive.f32.html#associatedconstant.NEG_INFINITY) instead.
69
83
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
70
84
pub const NEG_INFINITY : f32 = f32:: NEG_INFINITY ;
71
85
0 commit comments