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:

{# Addition #}
{{ 5 + 3 }} {# Returns 8 #}

-: Subtracts the second number from the first.

Example of use:

{# Subtraction #}
{{ 10 - 4 }} {# Returns 6 #}

/: Divides two numbers.

Example of use:

{# Division #}
{{ 10 / 2 }} {# Returns 5 #}

%: Calculates the remainder of an integer division.

Example of use:

{# Remainder of integer division #}
{{ 11 % 7 }} {# Returns 4 #}

//: Divides two numbers and returns the integer result rounded down.

Example of use:

{# Integer result rounded down #}
{{ 20 // 7 }} {# Returns 2 #}
{{ -20 // 7 }} {# Returns -3 #}

*: Multiplies the left operand by the right.

Example of use:

{# Multiplication #}
{{ 2 * 6 }} {# Returns 12 #}

**: Raises the left operand to the power of the right operand.

Example of use:

{# Exponentiation #}
{{ 3 ** 2 }} {# Returns 9 #}