This is a compact reference for the operators described in the language chapters.
| Operator | Meaning |
+ | Addition |
- | Subtraction |
* | Multiplication |
/ | Division |
% | Modulo |
** | Exponentiation |
| Operator | Meaning |
< | Less than |
> | Greater than |
<= | Less than or equal |
>= | Greater than or equal |
== | Equal |
!= | Not equal |
| Operator | Meaning |
And | Bitwise AND |
Or | Bitwise OR |
Xor | Bitwise XOR |
| Operator | Meaning |
- | Negation |
+ | Unary plus, a no-op |
++ | Postfix increment |
-- | Postfix decrement |
See Operators, Unary Operators, Comparisons, and Logical Operators for the full discussion and caveats.
← Previous
Next →