Math¶
Addition¶
Subtraction¶
Multiplication¶
Division¶
- Fractions always return a floating number, even if the result is a whole number.
Integer division (floor division) can be performed using the // operator, which will return the largest integer less than or equal to the result of the division.
Division reminder can be calculated using the modulus operator %, which returns the remainder of the division of two numbers.