File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -56,16 +56,11 @@ For numeric casts, there are quite a few cases to consider:
56
56
value cannot be represented by the target integer type] [ float-int ] ** .
57
57
This includes Inf and NaN. This is a bug and will be fixed.
58
58
* casting from an integer to float will produce the floating point
59
- representation of the integer, rounded if necessary (rounding strategy
60
- unspecified )
59
+ representation of the integer, rounded if necessary (rounding to
60
+ nearest, ties to even )
61
61
* casting from an f32 to an f64 is perfect and lossless
62
62
* casting from an f64 to an f32 will produce the closest possible value
63
- (rounding strategy unspecified)
64
- * ** [ NOTE: currently this will cause Undefined Behavior if the value
65
- is finite but larger or smaller than the largest or smallest finite
66
- value representable by f32] [ float-float ] ** . This is a bug and will
67
- be fixed.
63
+ (rounding to nearest, ties to even)
68
64
69
65
70
66
[ float-int ] : https://github.com/rust-lang/rust/issues/10184
71
- [ float-float ] : https://github.com/rust-lang/rust/issues/15536
You can’t perform that action at this time.
0 commit comments