Skip to content

Precedence

Operators are listed from tightest to loosest. Attaching a unit to a number binds tighter than any operator, so 10 m / 2 s divides two quantities.

LevelOperators
20^, prefix -, not
16a number and its unit
14%, !, two quantities side by side (5 ft 11 inch)
13*, /, mod, of, per, times, at, on, nearest, rounded up, rounded down, rounded even, rounded
12+, -, to, as, plus, minus
10in
8==, !=, <, <=, >, >=, before, after, ago, hence
6and
4or

to sits with + and -, so a to USD + b to USD does not mean what it appears to mean. Parenthesise each conversion, or convert the sum: (a + b) to USD.