Math Operators
Math operators describe mathematical formulas in markdown to dynamically calculate numerical values on the deal.
List of Operators
{{ abs }}
Return the magnitude of a
.
Params
a
returns
Example
{{ add }}
Return the sum of a
plus b
.
Params
a
b
returns
Example
{{ avg }}
Return the average of all numbers in the given array.
Params
array
: Array of numbers to add up.returns
Example
{{ ceil }}
Round up and return the smaller integer greater than or equal to the given number.
Params
value
returns
Example
{{ divide }}
Divide a
by b
Params
a
: numeratorb
: denominator
Example
{{ floor }}
Round down and return the largest integer greater than or equal to the given number.
Params
value
returns
Example
{{ max }}
Return the maximum of two numbers.
Params
a
: ab
: breturns
Example
{{ min }}
Return the minimum of two numbers.
Params
a
: ab
: breturns
Example
{{ modulo }}
Return the remainder of a division operation.
Params
a
b
returns
Example
{{ multiply }}
Return the product of number a
times number b
.
Params
a
: factorb
: multiplierreturns
Example
{{ multiplyAll }}
Return the product of a
times b
and c
.
Params
a
: factorb
: multiplierc
: multiplier...
additional numbersreturns
Example
{{ random }}
Generate a random number between two values.
Params
min
max
returns
Example
{{ remainder }}
Return the remainder when a
is divided by b
.
Params
a
: ab
: b
Example
{{ round }}
Round the given number to the closest integer.
Params
a
returns
Example
{{ subtract }}
Return the value of number a
minus number b
.
Params
a
b
returns
Example
{{ sum }}
Return the sum of all numbers in the given array.
Params
a
b
...
additional numbersreturns
Example
{{ times }}
Multiply number a
by number b
.
Params
a
: factorb
: multiplierreturns
Example