ABSOLUTE VALUE Function

The ABSOLUTE VALUE function returns the absolute value (the number itself without a negative or positive sign) of the number value you specify. This function enables you to calculate a negative number, but cause it to appear as a positive number.

Function name ABSOLUTE VALUE
ABSOLUTE VALUE ABSOLUTE VALUE( n:NUM)
Parameters This function requires you to replace only one parameter:

n: NUM

The function determines the absolute value of this value.
Result A number value.

Example

For example, you may need to send a notice to a client about an account balance. Not knowing whether it will be a positive or negative balance, you would create the computation, Absolute Value of Final Balance, which would return a positive expression, regardless. The computation script is:

ABSOLUTE VALUE( Final Balance )

Download

After you download the example template, you can import the template to any workspace to see this example code in action.