1
1
//! Constants specific to the `f32` single-precision floating point type.
2
2
//!
3
- //! *[See also the `f32` primitive type](../../std/primitive. f32.html) .*
3
+ //! *[See also the `f32` primitive type][ f32] .*
4
4
//!
5
5
//! Mathematically significant numbers are provided in the `consts` sub-module.
6
6
//!
@@ -35,7 +35,7 @@ use crate::num::FpCategory;
35
35
pub const RADIX : u32 = f32:: RADIX ;
36
36
37
37
/// Number of significant digits in base 2.
38
- /// Use [`f32::MANTISSA_DIGITS`](../../std/primitive.f32.html#associatedconstant.MANTISSA_DIGITS) instead.
38
+ /// Use [`f32::MANTISSA_DIGITS`] instead.
39
39
///
40
40
/// # Examples
41
41
///
@@ -55,7 +55,7 @@ pub const RADIX: u32 = f32::RADIX;
55
55
pub const MANTISSA_DIGITS : u32 = f32:: MANTISSA_DIGITS ;
56
56
57
57
/// Approximate number of significant digits in base 10.
58
- /// Use [`f32::DIGITS`](../../std/primitive.f32.html#associatedconstant.DIGITS) instead.
58
+ /// Use [`f32::DIGITS`] instead.
59
59
///
60
60
/// # Examples
61
61
///
@@ -72,7 +72,7 @@ pub const MANTISSA_DIGITS: u32 = f32::MANTISSA_DIGITS;
72
72
pub const DIGITS : u32 = f32:: DIGITS ;
73
73
74
74
/// [Machine epsilon] value for `f32`.
75
- /// Use [`f32::EPSILON`](../../std/primitive.f32.html#associatedconstant.EPSILON) instead.
75
+ /// Use [`f32::EPSILON`] instead.
76
76
///
77
77
/// This is the difference between `1.0` and the next larger representable number.
78
78
///
@@ -96,7 +96,7 @@ pub const DIGITS: u32 = f32::DIGITS;
96
96
pub const EPSILON : f32 = f32:: EPSILON ;
97
97
98
98
/// Smallest finite `f32` value.
99
- /// Use [`f32::MIN`](../../std/primitive.f32.html#associatedconstant.MIN) instead.
99
+ /// Use [`f32::MIN`] instead.
100
100
///
101
101
/// # Examples
102
102
///
@@ -113,7 +113,7 @@ pub const EPSILON: f32 = f32::EPSILON;
113
113
pub const MIN : f32 = f32:: MIN ;
114
114
115
115
/// Smallest positive normal `f32` value.
116
- /// Use [`f32::MIN_POSITIVE`](../../std/primitive.f32.html#associatedconstant.MIN_POSITIVE) instead.
116
+ /// Use [`f32::MIN_POSITIVE`] instead.
117
117
///
118
118
/// # Examples
119
119
///
@@ -133,7 +133,7 @@ pub const MIN: f32 = f32::MIN;
133
133
pub const MIN_POSITIVE : f32 = f32:: MIN_POSITIVE ;
134
134
135
135
/// Largest finite `f32` value.
136
- /// Use [`f32::MAX`](../../std/primitive.f32.html#associatedconstant.MAX) instead.
136
+ /// Use [`f32::MAX`] instead.
137
137
///
138
138
/// # Examples
139
139
///
@@ -150,7 +150,7 @@ pub const MIN_POSITIVE: f32 = f32::MIN_POSITIVE;
150
150
pub const MAX : f32 = f32:: MAX ;
151
151
152
152
/// One greater than the minimum possible normal power of 2 exponent.
153
- /// Use [`f32::MIN_EXP`](../../std/primitive.f32.html#associatedconstant.MIN_EXP) instead.
153
+ /// Use [`f32::MIN_EXP`] instead.
154
154
///
155
155
/// # Examples
156
156
///
@@ -170,7 +170,7 @@ pub const MAX: f32 = f32::MAX;
170
170
pub const MIN_EXP : i32 = f32:: MIN_EXP ;
171
171
172
172
/// Maximum possible power of 2 exponent.
173
- /// Use [`f32::MAX_EXP`](../../std/primitive.f32.html#associatedconstant.MAX_EXP) instead.
173
+ /// Use [`f32::MAX_EXP`] instead.
174
174
///
175
175
/// # Examples
176
176
///
@@ -190,7 +190,7 @@ pub const MIN_EXP: i32 = f32::MIN_EXP;
190
190
pub const MAX_EXP : i32 = f32:: MAX_EXP ;
191
191
192
192
/// Minimum possible normal power of 10 exponent.
193
- /// Use [`f32::MIN_10_EXP`](../../std/primitive.f32.html#associatedconstant.MIN_10_EXP) instead.
193
+ /// Use [`f32::MIN_10_EXP`] instead.
194
194
///
195
195
/// # Examples
196
196
///
@@ -210,7 +210,7 @@ pub const MAX_EXP: i32 = f32::MAX_EXP;
210
210
pub const MIN_10_EXP : i32 = f32:: MIN_10_EXP ;
211
211
212
212
/// Maximum possible power of 10 exponent.
213
- /// Use [`f32::MAX_10_EXP`](../../std/primitive.f32.html#associatedconstant.MAX_10_EXP) instead.
213
+ /// Use [`f32::MAX_10_EXP`] instead.
214
214
///
215
215
/// # Examples
216
216
///
@@ -230,7 +230,7 @@ pub const MIN_10_EXP: i32 = f32::MIN_10_EXP;
230
230
pub const MAX_10_EXP : i32 = f32:: MAX_10_EXP ;
231
231
232
232
/// Not a Number (NaN).
233
- /// Use [`f32::NAN`](../../std/primitive.f32.html#associatedconstant.NAN) instead.
233
+ /// Use [`f32::NAN`] instead.
234
234
///
235
235
/// # Examples
236
236
///
@@ -247,7 +247,7 @@ pub const MAX_10_EXP: i32 = f32::MAX_10_EXP;
247
247
pub const NAN : f32 = f32:: NAN ;
248
248
249
249
/// Infinity (∞).
250
- /// Use [`f32::INFINITY`](../../std/primitive.f32.html#associatedconstant.INFINITY) instead.
250
+ /// Use [`f32::INFINITY`] instead.
251
251
///
252
252
/// # Examples
253
253
///
@@ -267,7 +267,7 @@ pub const NAN: f32 = f32::NAN;
267
267
pub const INFINITY : f32 = f32:: INFINITY ;
268
268
269
269
/// Negative infinity (−∞).
270
- /// Use [`f32::NEG_INFINITY`](../../std/primitive.f32.html#associatedconstant.NEG_INFINITY) instead.
270
+ /// Use [`f32::NEG_INFINITY`] instead.
271
271
///
272
272
/// # Examples
273
273
///
0 commit comments