Math Component

Perform common math operations on numbers or lists of numbers
Component key: math#
DescriptionThe math component implements common mathematical functions that are available in JavaScript's built-in Math library.
#
Actions#
Absolute ValueReturns the absolute value of the input number. | key: abs
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Add NumbersReturns the result of adding the numbers | key: add
Input | Notes |
---|---|
Input Numbers string / Required Value List | Notes |
#
ArccosineReturns the arccosine of the input number. | key: acos
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
ArcsineReturns the arcsine of the input number. | key: asin
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
ArctangentReturns the arctangent of the input number. | key: atan
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
CeilingReturns the smallest integer greater than or equal to the input number. | key: ceil
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
CosineReturns the cosine of the input number. | key: cos
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Cube RootReturns the cube root of the input number. | key: cbrt
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Divide NumbersReturns the result of dividing the numbers | key: divide
Input | Notes |
---|---|
Input Numbers string / Required Value List | Notes |
#
e^xReturns e^x, where x is the input number, and e is Euler's constant (2.718…, the base of the natural logarithm). | key: exp
Input | Notes |
---|---|
Input Exponent string / Required | Notes A number to provide to the math function |
#
Evaluate ExpressionEvaluate a mathematical expression (for example, "2 * 3 + 7") | key: evaluate
Input | Notes | Example |
---|---|---|
Input Expression string / Required | Notes | Example 3 * 5 + 2 |
The evaluate action follows JavaScript evaluation rules. Your expression can use any JavaScript arithmetic operator and follows order of operations rules (think PEMDAS from middle school!).
For example, to express "five plus three times four to the third power", you could enter 5 + 3 * 4 ** 3
.
Note that the exponent would evaluate first, giving 5 + 3 * 64
.
Then, the multiplication would evaluate giving 5 + 192
.
Finally, the addition would evaluate giving 197
.
You can leverage input templates to concatenate several config variables, step results and numbers into a single mathematical expression:

Additionally, you can use JavaScript bitwise operators to do things like 5 << 2
and get a result of 20
.
#
Float-roundReturns the nearest single precision float representation of the input number. | key: fround
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
FloorReturns the largest integer less than or equal to the input number. | key: floor
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Hyperbolic ArccosineReturns the hyperbolic arccosine of the input number. | key: acosh
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Hyperbolic ArcsineReturns the hyperbolic arcsine of a number. | key: asinh
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Hyperbolic ArctangentReturns the hyperbolic arctangent of the input number. | key: atanh
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Hyperbolic CosineReturns the hyperbolic cosine of the input number. | key: cosh
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Hyperbolic SineReturns the hyperbolic sine of the input number. | key: sinh
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Hyperbolic TangentReturns the hyperbolic tangent of the input number. | key: tanh
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
HypotenuseReturns the square root of the sum of squares of an array of numbers. | key: hypot
Input | Notes |
---|---|
Input Numbers string / Required Value List | Notes |
#
LogarithmReturns the logarithm of a given input base of an input number. | key: log
Input | Default | Notes |
---|---|---|
Input Exponent Base string / Required | Default 10 | Notes |
Input Number string / Required | Default | Notes A number to provide to the math function |
#
MaximumReturns the largest of zero or more numbers. | key: max
Input | Notes |
---|---|
Input Numbers string / Required Value List | Notes |
#
MinimumReturns the smallest of zero or more numbers. | key: min
Input | Notes |
---|---|
Input Numbers string / Required Value List | Notes |
#
Multiply NumbersReturns the result of multiplying the numbers | key: multiply
Input | Notes |
---|---|
Input Numbers string / Required Value List | Notes |
#
Natural LogReturns the natural logarithm (log e; also, ln) of the input number. | key: naturalLog
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
PowerReturns base x to the exponent power y (that is, x^y). | key: pow
Input | Notes |
---|---|
Input Base string / Required | Notes A number to provide to the math function |
Input Exponent string / Required | Notes A number to provide to the math function |
#
Random IntegerReturns a pseudo-random integer between min and max. | key: randomInt
Input | Notes |
---|---|
Input Max string / Required | Notes A number to provide to the math function |
Input Min string / Required | Notes A number to provide to the math function |
#
Random NumberReturns a pseudo-random number between min and max. | key: random
Input | Notes |
---|---|
Input Max string / Required | Notes A number to provide to the math function |
Input Min string / Required | Notes A number to provide to the math function |
#
RoundReturns the value of the input number rounded to the nearest integer. | key: round
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
SineReturns the sine of the input number. | key: sin
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Square RootReturns the positive square root of the input number. | key: sqrt
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Subtract NumbersReturns the result of subtracting the numbers | key: subtract
Input | Notes |
---|---|
Input Numbers string / Required Value List | Notes |
#
TangentReturns the tangent of the input number. | key: tan
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |
#
Truncate NumberReturns the integer portion of the input number, removing any fractional digits. | key: trunc
Input | Notes |
---|---|
Input Number string / Required | Notes A number to provide to the math function |