nim-basics icon indicating copy to clipboard operation
nim-basics copied to clipboard

Precedence of Operators

Open jlp765 opened this issue 5 years ago • 0 comments

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

jlp765 avatar Jan 27 '20 07:01 jlp765