File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -349,10 +349,8 @@ reference types and `mut` or `const` in pointer types.
349
349
* sign-extend if the source is signed
350
350
* Casting from a float to an integer will round the float towards zero
351
351
* ` NaN ` will return ` 0 `
352
- * Values larger than the maximum integer value will saturate to the
353
- maximum value of the integer type.
354
- * Values smaller than the minimum integer value will saturate to the
355
- minimum value of the integer type.
352
+ * Values larger than the maximum integer value, including ` INFINITY ` , will saturate to the maximum value of the integer type.
353
+ * Values smaller than the minimum integer value, including ` NEG_INFINITY ` , will saturate to the minimum value of the integer type.
356
354
* Casting from an integer to float will produce the closest possible float \*
357
355
* if necessary, rounding is according to ` roundTiesToEven ` mode \*\*\*
358
356
* on overflow, infinity (of the same sign as the input) is produced
You can’t perform that action at this time.
0 commit comments