Actions: Math

Random Number

Returns a random integer.

Argument Description
Output The location where the result will go (variable or text or field element).
lowerNumber An integer or variable containing an integer to be the lowest possible random number.
upperNumber An integer or variable containing an integer to be the highest possible random number.

add 1 to variable

Adds 1 to a variable.

Argument Description
Variable The variable to which 1 is added. An empty variable implies a value of 0.

get difference

Calculates the difference between two numbers.

Argument Description
Number1 A number or variable containing a number to subtract from.
Number2 A number or variable containing a number to subtract by.
Output The location where the subtraction of two numbers will be stored (variable).
ErrorHandling The action to take if an error occurs.

get division

Calculates the division of two numbers.

Argument Description
Dividend A number or variable containing a number to be the dividend (number that is being divided; ‘Dividend’/‘Divisor’).
Divisor A number or variable containing a number to be the divisor (number that is being divided by).
Output The location where the division of the two numbers will be stored (variable).
ErrorHandling [Optional] The action to take if an error occurs. Shows error in a popup error as a default action.

get power

Calculates the number raised to a power.

Argument Description
Base A number or variable containing a number to take the exponent of.
Exponent A number or variable containing a number representing what number to raise the base number by.
Output The location where the number raised by the power will be stored (variable).
ErrorHandling The action to take if an error occurs.

get product

Calculates the product of two numbers.

Argument Description
Multiplier A number or variable containing a number to be multiplied.
Multiplicand A number or variable containing a number to be multiplied.
Output The location where the product of the two numbers will be stored (variable).
ErrorHandling The action to take if an error occurs.

get root

Calculates the ‘nth’ root of a number.

Argument Description
Radicand A number or variable containing a number to take the root of.
Degree A number or variable containing a number to take the root by.
Output The location where the nth root of a number will be stored (variable).
ErrorHandling The action to take if an error occurs.

get sum

Calculates the sum of two numbers.

Argument Description
Number1 A number or variable containing a number to be summed.
Number2 A number or variable containing a number to be summed.
Output The location where the sum of the two numbers will be stored (variable).
ErrorHandling The action to take if an error occurs.

round to number

Rounds off a value to the nearest whole number.

Argument Description
Output The location where the rounded number will be stored.
Number The value to round to the nearest number.
Precision The number of decimal places.

This chapter was last updated on Fri 8 Nov 2024 10:54:34 GMT