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
areturns
Example
{{ add }}
Return the sum of a plus b.
Params
abreturns
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
valuereturns
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
valuereturns
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
abreturns
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
{{ pow }}
Return the value of a base raised to a power.
Params
base: baseexponent: exponentreturns
Example
{{ random }}
Generate a random number between two values.
Params
minmaxreturns
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
areturns
Example
{{ subtract }}
Return the value of number a minus number b.
Params
abreturns
Example
{{ sum }}
Return the sum of all numbers in the given array.
Params
ab...additional numbersreturns
Example
{{ times }}
Multiply number a by number b.
Params
a: factorb: multiplierreturns
Example