Operators
Math
We can also use the following operators to create approaches involving mathematical calculations.
Currently supported mathematical operators:
+
: Adds two numbers (operands are converted to numbers if necessary).
Example of use:
-
: Subtracts the second number from the first.
Example of use:
/
: Divides two numbers.
Example of use:
%
: Calculates the remainder of an integer division.
Example of use:
//
: Divides two numbers and returns the integer result rounded down.
Example of use:
*
: Multiplies the left operand by the right.
Example of use:
**
: Raises the left operand to the power of the right operand.
Example of use: