This commit is contained in:
jpekkila
2020-03-25 13:51:07 +02:00

View File

@@ -492,6 +492,8 @@ All real number literals are converted automatically to the correct precision. I
(1.0f * 1.0d) // 1.0f is implicitly cast to double and the multiplication is done in double precision. (1.0f * 1.0d) // 1.0f is implicitly cast to double and the multiplication is done in double precision.
``` ```
> **Note:** Only C++-style casting is currently supported. For example, `float(1.0)` is valid but `(float) 1.0` gives a syntax error.
## Control Flow ## Control Flow
Conditional statements are expressed with the `if-else` construct. Unlike in C and C++, we require Conditional statements are expressed with the `if-else` construct. Unlike in C and C++, we require