Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precedence of Operators #16

Open
jlp765 opened this issue Jan 27, 2020 · 0 comments
Open

Precedence of Operators #16

jlp765 opened this issue Jan 27, 2020 · 0 comments

Comments

@jlp765
Copy link

jlp765 commented Jan 27, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant