File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
library/coretests/tests/floats Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -332,15 +332,15 @@ fn test_trunc() {
332
332
#[ cfg( target_has_reliable_f128_math) ]
333
333
fn test_fract ( ) {
334
334
assert_eq ! ( 1.0f128 . fract( ) , 0.0f128 ) ;
335
- assert_eq ! ( 1.3f128 . fract( ) , 0.300000000000000044408920985006261617f128 ) ;
335
+ assert_eq ! ( 1.3f128 . fract( ) , 0.300000000000000000000000000000000039f128 ) ;
336
336
assert_eq ! ( 1.5f128 . fract( ) , 0.5f128 ) ;
337
337
assert_eq ! ( 1.7f128 . fract( ) , 0.7f128 ) ;
338
338
assert_eq ! ( 0.0f128 . fract( ) , 0.0f128 ) ;
339
339
assert_eq ! ( ( -0.0f128 ) . fract( ) , -0.0f128 ) ;
340
340
assert_eq ! ( ( -1.0f128 ) . fract( ) , -0.0f128 ) ;
341
- assert_eq ! ( ( -1.3f128 ) . fract( ) , -0.300000000000000044408920985006261617f128 ) ;
341
+ assert_eq ! ( ( -1.3f128 ) . fract( ) , -0.300000000000000000000000000000000039f128 ) ;
342
342
assert_eq ! ( ( -1.5f128 ) . fract( ) , -0.5f128 ) ;
343
- assert_eq ! ( ( -1.7f128 ) . fract( ) , -0.699999999999999955591079014993738383f128 ) ;
343
+ assert_eq ! ( ( -1.7f128 ) . fract( ) , -0.699999999999999999999999999999999961f128 ) ;
344
344
}
345
345
346
346
#[ test]
You can’t perform that action at this time.
0 commit comments