The following left-associative binary arithmetic operators are supported, in descending precedence order:
**
, multiplication *
, integer division /
, integer
ceil-division /^
and modulus %
.
+
and subtraction -
.
In all the binary arithmetic operations automatic promotions (coercions) are performed in the operands as needed. The rules are:
The following right-associative unary arithmetic operators are supported:
Finally, pre-increment, pre-decrement, post-increment and
post-decrement operators ++
and --
are supported.