Appearance
Arithmetic Operators
Arithmetic Operators work with numeric data types (Float, Integer).
| Operator | Operation | Operand | Result | Example |
|---|---|---|---|---|
| + | Addition | Float, Integer | Float, Integer | 1 + 2.06 |
| - | Subtraction | Float, Integer | Float, Integer | 4 - 3.76 |
| * | Multiplication | Float, Integer | Float, Integer | 2.67 * 5 |
| / | Float Division | Float, Integer | Float | 4.5 / 3 |
| div | Integer Division | Integer | Integer | 10 div 3 (result 3) |
| mod | Remainder | Integer | Integer | 10 mod 3 (result 1) |
TIP
Note: Numeric data types can be compared through the use of Relational Operators.