Math Operators
Addition
Adds two numbers.
2 + 10 = 12
Subtraction
Subracts two numbers.
2 - 10 = -8
Multiplication
Multiplies two numbers.
2 * 10 = 20
Division
Divides two numbers.
10 / 2 = 5
Modulus
Gets the remainder when dividing two numbers. 0 indicates even numbers, 1 indicates odd.
10 % 2 = 0
Pre-Increment
Increments the number by one, then returns it.
++10 = 11 -> 11
Pre-Decrement
Decrements the number by one, then returns it.
--11 = 10 -> 10
Post-Increment
Returns the number, then increments by one.
2++ = 2 -> 3
Post-Decrement
Returns the number, then decrements by one.
3-- = 3 -> 2