Math function
This topic provides the Math functions available for an Expression activity.
Function |
Returns |
Description |
---|---|---|
Integer(number) |
Number |
Returns the integer part of a specified number. |
RandomBetween(number, number) |
Number |
Gets a random number between or equal to two specified values. |
RoundDown(number) |
Number |
Rounds a value down. |
RoundUp(number) |
Number |
Rounds a value up. |
Pow(number, number) |
Number |
Calculates a number raised to a specified power. |
Round(number, number) |
Number |
Rounds the value to the given number of decimal places. This function accepts both inputs, that is value and number of decimal places. For example, if the function
is Round(12.26545,3) the function rounds the value to 12.265.
|
Abs(number) |
Number |
Returns the absolute value of a number. |