Toggle menu

Maths

Perform calculations. Includes "add", "subtract", "multiply", "divide", "floor", "ceil" and "round".

add

Returns the sum of two numbers.

Parameters

value [int] - The number to add to the expression. (Required)

Example

value = 5

{{add value 5}}

Result

10

subtract

Returns the difference between two numbers. Opposite of add

Parameters

value [int] - The number to subtract from the expression. (Required)

Example

value = 5

{{subtract value 5}}

Result

0

divide

Returns the division of two numbers.

Parameters

value [int] - The number to divide the expression. (Required)

Example

value = 5

{{divide value 5}}

Result

1

multiply

Returns the multiplication of two numbers.

Parameters

value [int] - The number to multiply the expression. (Required)

Example

value = 5

{{multiply value 5}}

Result

25

floor

Returns the value rounded down to the nearest integer.

Parameters

None

Example

value = 5.6

{{floor value}}

Result

5

ceil

Returns the value rounded up to the nearest integer.

Parameters

None.

Example

value = 5.6

{{ceil value}}

Result

6

round

Returns the value rounded to the nearest integer.

Parameters

None

Example

value = 5.69

{{round value}}

Result

6

Last modified on September 06, 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon