We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
int
f32
1 parent 0c055a1 commit 35c60cfCopy full SHA for 35c60cf
doc/docs.md
@@ -434,9 +434,10 @@ These are the allowed possibilities:
434
i8 → i16 → int → i64 ⬏
435
```
436
An `int` value for example can be automatically promoted to `f64`
437
-or `i64` but not to `f32` or `u32`. (`f32` would mean precision
438
-loss for large values and `u32` would mean loss of the sign for
+or `i64` but not to `u32`. (`u32` would mean loss of the sign for
439
negative values).
+Promotion from `int` to `f32`, however, is currently done automatically
440
+(but can lead to precision loss for large values).
441
442
Literals like `123` or `4.56` are treated in a special way. They do
443
not lead to type promotions, however they default to `int` and `f64`
0 commit comments