When we need to work with math, these operators will help with your markdown.
Return the magnitude of a
.
Params
a
{Number}returns
{Number}Return the sum of a
plus b
.
Params
a
{Number}b
{Number}returns
{Number}Returns the average of all numbers in the given array.
Params
array
{Array}: Array of numbers to add up.returns
{Number}Example
{{avg "[1, 2, 3, 4, 5]"}}
<!-- results in: '3' -->
Get the Math.ceil()
of the given value.
Params
value
{Number}returns
{Number}Divide a
by b
Params
a
{Number}: numeratorb
{Number}: denominatorGet the Math.floor()
of the given value.
Params
value
{Number}returns
{Number}Return the difference of a
minus b
.
Params
a
{Number}b
{Number}Get the remainder of a division operation.
Params
a
{Number}b
{Number}returns
{Number}Return the product of a
times b
.
Params
a
{Number}: factorb
{Number}: multiplierreturns
{Number}Return the product of a
times b
and c
.
Params
a
{Number}: factorb
{Number}: multiplierc
{Number}: multiplier...
additional numbersreturns
{Number}Add a
by b
.
Params
a
{Number}: factorb
{Number}: multiplierGenerate a random number between two values
Params
min
{Number}max
{Number}returns
{String}Get the remainder when a
is divided by b
.
Params
a
{Number}: ab
{Number}: bRound the given number.
Params
number
{Number}returns
{Number}Return the product of a
minus b
.
Params
a
{Number}b
{Number}returns
{Number}Returns the sum of all numbers in the given array.
Params
array
{Array}: Array of numbers to add up.returns
{Number}Example
{{sum "[1, 2, 3, 4, 5]"}}
<!-- results in: '15' -->
Multiply number a
by number b
.
Params
a
{Number}: factorb
{Number}: multiplierreturns
{Number}