nim-basics
nim-basics copied to clipboard
Precedence of Operators
A suggested addition to
Basic Data Types -> floats
(or maybe its own sub-section)
An extended example with two operators of the same precedence, e.g.
5.0 * 3.0 mod 10.0
is evaluated as
(5.0 * 3.0) mod 10.0
because multiplication and modulus have the same precedence level
It might help to include a reference to Precedence Levels at https://nim-lang.org/docs/manual.html#syntax-precedence