Die Operator have the following precedence (highest first):
Rating 1 : " | Comments |
Rating 2 : [,] | Labels |
Rating 3 : (,) | Expressions in braces |
Rating 4 : |,^ | Parallel, Power |
Rating 5 : *,/,\ | Multiplication, Division |
Rating 6 : +,- | Addition, Subtraktion |
Rating 7 : =,<,>,<=,>=,<> | Logical |
Equal rated operators are calculated from right to left.
Examples:
3^2|3 results 3^(2|3) = 3,737
3|3^2 results 3|(3^2) = 2,25
2+3*5 results 2+(3*5) = 17
1+2 < 2*1 results (1+2) < (2*1) = 0
1+2|3 results 1+(2|3) = 2,2
2|3+1 results (2|3)+1 = 2,2