First page Back Continue Last page Overview Graphics

Operators

+, - Addition, Substraction 10 - 3 7

*, /, % Multipl., Division, Remainder 27 % 7 6

+x, -x (algebraic) sign -3 +3 0

~x Bitwise Not ~3 -4

(~x corresponds to -(x-1))

** Exponentiation 10 ** 3 1000

or Boolean Or

and Boolean And

not Boolean Not

in „Element of“ 1 in [3, 2, 1]

<, <=, >, >=, !=, == Comparisons 2 <= 3

| Bitwise Or 6 | 3 7

& Bitwise And 6 & 3 2

^ Bitwise XOR 6 ^ 3 5

<<, >> Shift Operators 2 << 3 16