Math

Add

Takes two values as input and performs an addition. No specification of the data type in order to work for multiple data types (Integer, Float, Double, etc.).

Syntax

Add ( Augend , Addend )

Parameters

Augend First part of the addition. Type: Any

Addend Second part of the addition. Type: Any

Return Type

Any

Ceil

This element always rounds up a number, even when used on a negative number

Syntax

Ceil ( X )

Parameters

X This value receives a double or decimal type Type: Double

Return Type

Double

Divide

Divides the Dividend value with the Divisor value No specification of the data type in order to work for multiple data types (Integer, Float, Double, ..).

Syntax

Divide ( Dividend , Divisor )

Parameters

Dividend First part of the division. Type: Any

Divisor Second part of the division. Mustn't be zero. Type: Any

Return Type

Any

Increment

Increments the value of a Variable with the given Name.

Syntax

Increment ( Name )

Parameters

Name Name of the variable which will be incremented. Type: String

Return Type

Int

Modulo

Returns the reminder of the division. No specification of the data type in order to work for multiple data types (Integer, Float, Double, ..).

Syntax

Modulo ( Dividend , Divisor )

Parameters

Dividend First part of the division. Type: Any

Divisor Second part of the division. Mustn't be zero. Type: Any

Return Type

Int

Multiply

Multiplies two values.

Syntax

Multiply ( Multiplicand , Multiplier )

Parameters

Multiplicand First factor of the multiplication. Type: Any

Multiplier Second factor of the multiplication. Type: Any

Return Type

Any

Pow

Returns a specified number raised to the specified power.

Syntax

Pow ( X , Y )

Parameters

X A double-precision floating-point number to be raised to a power. Type: Double

Y A double-precision floating-point number that specifies a power. Type: Double

Return Type

Double

Round

Rounds a Double or Numeric value to the nearest integer or to the specified number of fractional digits.

Syntax

Round ( Value [, Digits] [, MidpointRounding] )

Parameters

Value A Double or Numeric to be rounded. Type: Any

Digits (optional) The number of fractional digits in the return value. Type: Integer

MidpointRounding (optional) The rounding strategy:

  • 'ToEven' (default): Rounds to the nearest number, and when a number is halfway between two others, it is rounded toward the nearest even number (IEEE 754).

  • 'AwayFromZero': Rounds to the nearest number, and when a number is halfway between two others, it is rounded toward the nearest number that is away from zero (DIN 1333). Type: String

Return Type

Double

Square Root

Returns the square root of a specified number.

Syntax

Square Root ( X )

Parameters

X The number whose square root is to be found. Type: Double

Return Type

Double

Subtract

Takes two values as input and performs a subtraction. No specification of the data type in order to work for multiple data types (Integer, Float, Double, ..).

Syntax

Subtract ( Minuend , Subtrahend )

Parameters

Minuend First part of the subtraction. Type: Any

Subtrahend Second part of the subtraction. Type: Any

Return Type

Any

Last updated

Was this helpful?