Math functions
Math functions available are useful for calculating values based on numerical data. For example, calculating total sales from multiple items.
TotalAgility supports the following math functions.
|
Function |
Returns |
Description |
|---|---|---|
|
Integer(number) |
Number |
Converts a number to an integer by truncating decimal places. |
|
RandomBetween(number, number) |
Number |
Generates a random number between two specified values. |
|
RoundDown(number) |
Number |
Rounds a number down to the nearest integer. For example, if you set the value as 13.2, the function rounds the value to 13. For 13.5, 13.6, or higher, the function rounds the value to 14. |
|
RoundUp(number) |
Number |
Rounds a number up to the nearest integer.
|
|
Pow(number, number) |
Number |
Returns a number raised to a specified power. |
|
Round(number, number) |
Number |
Rounds a number to specific decimal places. For example, if the number of decimal places is 1:
For example, if the number of decimal places is 2:
|
|
Abs(number) |
Number |
Returns the absolute value of a number. |