Skip to main content

Math Component

Perform common math operations on numbers or lists of numbers

Component key: math

Changelog ↓

Description

The math component implements common mathematical functions that are available in JavaScript's built-in Math library.

Actions

Absolute Value

Returns the absolute value of the input number. | key: abs

InputNotesExample
Number

A number to provide to the math function


Add Numbers

Returns the result of adding the numbers | key: add

InputNotesExample
Numbers

Arccosine

Returns the arccosine of the input number. | key: acos

InputNotesExample
Number

A number to provide to the math function


Arcsine

Returns the arcsine of the input number. | key: asin

InputNotesExample
Number

A number to provide to the math function


Arctangent

Returns the arctangent of the input number. | key: atan

InputNotesExample
Number

A number to provide to the math function


Ceiling

Returns the smallest integer greater than or equal to the input number. | key: ceil

InputNotesExample
Number

A number to provide to the math function


Cosine

Returns the cosine of the input number. | key: cos

InputNotesExample
Number

A number to provide to the math function


Cube Root

Returns the cube root of the input number. | key: cbrt

InputNotesExample
Number

A number to provide to the math function


Divide Numbers

Returns the result of dividing the numbers | key: divide

InputNotesExample
Numbers

e^x

Returns e^x, where x is the input number, and e is Euler's constant (2.718…, the base of the natural logarithm). | key: exp

InputNotesExample
Exponent

A number to provide to the math function


Evaluate Expression

Evaluate a mathematical expression (for example, "2 * 3 + 7") | key: evaluate

InputNotesExample
Expression3 * 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:

Evaluate Template in integration designer

Additionally, you can use JavaScript bitwise operators to do things like 5 << 2 and get a result of 20.


Float-round

Returns the nearest single precision float representation of the input number. | key: fround

InputNotesExample
Number

A number to provide to the math function


Floor

Returns the largest integer less than or equal to the input number. | key: floor

InputNotesExample
Number

A number to provide to the math function


Hyperbolic Arccosine

Returns the hyperbolic arccosine of the input number. | key: acosh

InputNotesExample
Number

A number to provide to the math function


Hyperbolic Arcsine

Returns the hyperbolic arcsine of a number. | key: asinh

InputNotesExample
Number

A number to provide to the math function


Hyperbolic Arctangent

Returns the hyperbolic arctangent of the input number. | key: atanh

InputNotesExample
Number

A number to provide to the math function


Hyperbolic Cosine

Returns the hyperbolic cosine of the input number. | key: cosh

InputNotesExample
Number

A number to provide to the math function


Hyperbolic Sine

Returns the hyperbolic sine of the input number. | key: sinh

InputNotesExample
Number

A number to provide to the math function


Hyperbolic Tangent

Returns the hyperbolic tangent of the input number. | key: tanh

InputNotesExample
Number

A number to provide to the math function


Hypotenuse

Returns the square root of the sum of squares of an array of numbers. | key: hypot

InputNotesExample
Numbers

Logarithm

Returns the logarithm of a given input base of an input number. | key: log

InputNotesExample
Exponent Base10
Number

A number to provide to the math function


Maximum

Returns the largest of zero or more numbers. | key: max

InputNotesExample
Dynamic Numbers

Use this input to provide numbers in JSON format, rather than using the default 'Numbers' input. Please note that using this input takes precedence over said input.

Numbers

Minimum

Returns the smallest of zero or more numbers. | key: min

InputNotesExample
Dynamic Numbers

Use this input to provide numbers in JSON format, rather than using the default 'Numbers' input. Please note that using this input takes precedence over said input.

Numbers

Multiply Numbers

Returns the result of multiplying the numbers | key: multiply

InputNotesExample
Numbers

Natural Log

Returns the natural logarithm (log e; also, ln) of the input number. | key: naturalLog

InputNotesExample
Number

A number to provide to the math function


Power

Returns base x to the exponent power y (that is, x^y). | key: pow

InputNotesExample
Base

A number to provide to the math function

Exponent

A number to provide to the math function


Random Integer

Returns a pseudo-random integer between min and max. | key: randomInt

InputNotesExample
Max

A number to provide to the math function

Min

A number to provide to the math function


Random Number

Returns a pseudo-random number between min and max. | key: random

InputNotesExample
Max

A number to provide to the math function

Min

A number to provide to the math function


Round

Returns the value of the input number rounded to the nearest integer. | key: round

InputNotesExample
Number

A number to provide to the math function


Sine

Returns the sine of the input number. | key: sin

InputNotesExample
Number

A number to provide to the math function


Square Root

Returns the positive square root of the input number. | key: sqrt

InputNotesExample
Number

A number to provide to the math function


Subtract Numbers

Returns the result of subtracting the numbers | key: subtract

InputNotesExample
Numbers

Tangent

Returns the tangent of the input number. | key: tan

InputNotesExample
Number

A number to provide to the math function


Truncate Number

Returns the integer portion of the input number, removing any fractional digits. | key: trunc

InputNotesExample
Number

A number to provide to the math function


Changelog

2025-07-07

Added remainder (modulus) action for mathematical calculations and data processing.