File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,9 @@ pub trait FloatCore: Num + NumCast + Neg<Output = Self> + PartialOrd + Copy {
244
244
/// Returns `true` if the number is [subnormal].
245
245
///
246
246
/// ```
247
+ /// use num_traits::float::FloatCore;
248
+ /// use std::f64;
249
+ ///
247
250
/// let min = f64::MIN_POSITIVE; // 2.2250738585072014e-308_f64
248
251
/// let max = f64::MAX;
249
252
/// let lower_than_min = 1.0e-308_f64;
@@ -1157,6 +1160,9 @@ pub trait Float: Num + Copy + NumCast + PartialOrd + Neg<Output = Self> {
1157
1160
/// Returns `true` if the number is [subnormal].
1158
1161
///
1159
1162
/// ```
1163
+ /// use num_traits::Float;
1164
+ /// use std::f64;
1165
+ ///
1160
1166
/// let min = f64::MIN_POSITIVE; // 2.2250738585072014e-308_f64
1161
1167
/// let max = f64::MAX;
1162
1168
/// let lower_than_min = 1.0e-308_f64;
You can’t perform that action at this time.
0 commit comments