File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1942,8 +1942,8 @@ pub mod math {
19421942 /// let abs_difference_x = (f32::math::abs_sub(x, 1.0) - 2.0).abs();
19431943 /// let abs_difference_y = (f32::math::abs_sub(y, 1.0) - 0.0).abs();
19441944 ///
1945- /// assert!(abs_difference_x <= f32::EPSILON );
1946- /// assert!(abs_difference_y <= f32::EPSILON );
1945+ /// assert!(abs_difference_x <= 1e-6 );
1946+ /// assert!(abs_difference_y <= 1e-6 );
19471947 /// ```
19481948 ///
19491949 /// _This standalone function is for testing only.
@@ -1988,7 +1988,7 @@ pub mod math {
19881988 /// // x^(1/3) - 2 == 0
19891989 /// let abs_difference = (f32::math::cbrt(x) - 2.0).abs();
19901990 ///
1991- /// assert!(abs_difference <= f32::EPSILON );
1991+ /// assert!(abs_difference <= 1e-6 );
19921992 /// ```
19931993 ///
19941994 /// _This standalone function is for testing only.
You can’t perform that action at this time.
0 commit comments