Skip to content

Operators

OperatorBehaviour
+ or plusAdds numbers together
or minusSubtracts the second number from the first
x or * or multiplied byMultiplies numbers together
/ or ÷ or divided byDivides the first number by the second number
^ or ** or to the power ofRaises the first number to the power of the second number
modGives you the remainder after a division
1 plus 1 | 2
6 minus 3 | 3
2 multiplied by 3 | 6
8 divided by 2 | 4
2 to the power of 3 | 8
11 mod 2 | 1