abs

Returns the absolute value of a number. The absolute value of a number is the number without its sign. This results in a negative number becoming positive and a positive number remaining unchanged.

Usage

abs(<number>)

Parameters

NameTypeRequiredDescription
numbernumberYesThe number you want the absolute value of.

Examples

ExpressionResult
abs(-4.4)4.4
abs(4.4)4.4

ceiling

Rounds a number up to the nearest integer.

Usage

ceiling(<number>)

Parameters

NameTypeRequiredDescription
numbernumberYesThe number to round up to the nearest integer.

Examples

ExpressionResult
ceiling(-4.4)-4
ceiling(4.4)5

floor

Rounds a number down to the nearest integer.

Usage

floor(<number>)

Parameters

NameTypeRequiredDescription
numbernumberYesThe number to round down to the nearest integer.

Examples

ExpressionResult
floor(-4.4)-5
floor(4.4)4

max

Compares two numbers and returns the largest of the two.

Usage

max(<first_number>, <second_number>)

Parameters

NameTypeRequiredDescription
first_numbernumberYesA number to compare.
second_numbernumberYesA number to compare.

Examples

ExpressionResult
max(-4.4, 5.5)5.5
max(7, 8)8

min

Compares two numbers and returns the smallest of the two.

Usage

min(<first_number>, <second_number>)

Parameters

NameTypeRequiredDescription
first_numbernumberYesA number to compare.
second_numbernumberYesA number to compare.

Examples

ExpressionResult
min(-4.4, 5.5)-4.4
min(7, 8)7

mod

Divides two numbers and returns the remainder.

Usage

mod(<first_number>, <second_number>)

Parameters

NameTypeRequiredDescription
first_numbernumberYesThe dividend (the number to be divided).
second_numbernumberYesThe divisor (the number to divide by).

Examples

ExpressionResult
mod(-4.4, 5.5)-4.4
mod(-4.4, 2)0.4
mod(10, 2)0
mod(10, 3)1

random

Returns a random number greater than or equal to 0 and less than 1.

Usage

random()

Parameters

This function doesn't have any parameters.

Examples

ExpressionResult
random()0.05
random()0.87

round

Rounds a number to the nearest integer.

Usage

round(<number>)

Parameters

NameTypeRequiredDescription
numbernumberYesThe number to round to the nearest integer.

Examples

ExpressionResult
round(-4.4)-4
round(-4.5)-4
round(-4.6)-5
round(4.4)4
round(4.5)4
round(4.6)5

trunc

Truncates a number as an integer by removing the fractional part of the number.

Usage

trunc(<number>)

Parameters

NameTypeRequiredDescription
numbernumberYesThe number to truncate.

Examples

ExpressionResult
trunc(-4.4)-4
trunc(4.4)4