The arithmetic operators are, in order of precedence:
parentheses for grouping |
: |
( ) |
unary plus and minus |
: |
+ - |
exponentiation |
: |
^ |
multiply, divide, modulus |
: |
* / % |
addition and subtraction |
: |
+ - |
assignment |
: |
= |
assignment with operator |
: |
+= -= *= /= %= ^= |
|
As in the C language, the operation
x
+= 1 means
x
=
x
+ 1.