About arithmetic operators
Arithmetic operators are those operators that can be used on numeric data types like real and integer.
Aritmetic Operator |
What it's used for |
+ |
Addition |
- |
Subtraction |
/ |
Division |
* |
Multiplication |
^ or ** |
Powers |
DIV or // |
Floor division |
MOD or % |
Modulus |
The bottom two may be ones you are not familiar with. Floor division, sometimes called integer division, means we divide one number by another and then ignore any remainder and return just the integer part.
Modulus is where you divide one number by another and return just the remainder that would occur.