Mathematical functions
The following table provides a list of mathematical functions.
Note: Functions can be written in Legacy Script Language or in
ECMAScript. For details, see Scripting within tests and stubs. All the
examples given in the following table are in Legacy, unless specified otherwise.
Function | Usage |
---|---|
Absolute value The Absolute Value function returns the absolute value of the expression. |
|
Add The Add function returns the sum of the expressions. |
|
Divide The Divide function returns the quotient of the expressions (the first divided by the second. |
|
Floor The Floor function returns the highest integer that is less than the specified expression. |
|
Modulo The Modulo function returns the remainder of dividing the first expression by the second. |
|
Multiply The Multiply function returns the product of two expressions. |
|
Round The Round function returns the value of the expression, rounded to the (optional) number of decimal places or to the nearest whole number. |
Example:
Returns: 299.78
Returns: 300 |
Subtract The Subtract function returns the difference of two expressions (the second subtracted from the first). |
|