Use this function to return the absolute value of a number. The absolute value of a number is its positive value.
Parameter |
Description |
Number |
Enter a number data type. The default is the value of the current field. |
The system returns the absolute value of a number. Absolute values are always positive numbers.
Here are some examples:
(Assume the current field contains the number 250.)
Function |
Result |
Explanation |
Return(ABS ( )) |
250 |
Defaults to the current field. |
Return(ABS (-101.25)) |
101.25 |
Returns the absolute value of the given value. Note that this function retains the decimal. |
Return(ABS (10 / -2)) |
5 |
10 is divided by -2 resulting in -5. The absolute value of -5 is returned. |
© Copyright 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices