Operators
Operator Symbols
Section titled “Operator Symbols”Operator | Behaviour |
---|---|
+ or plus | Adds numbers together |
– or minus | Subtracts the second number from the first |
x or * or multiplied by | Multiplies numbers together |
/ or ÷ or divided by | Divides the first number by the second number |
^ or ** or to the power of | Raises the first number to the power of the second number |
mod | Gives you the remainder after a division |
Examples
Section titled “Examples”1 plus 1 | 26 minus 3 | 32 multiplied by 3 | 68 divided by 2 | 42 to the power of 3 | 811 mod 2 | 1