Calculates the absolute value of a number.
Abs ( n )
Argument |
Description |
---|---|
n |
The number for which you want the absolute value |
The datatype of n. Returns the absolute value of n. If n is null, Abs returns null.
All these statements set num to 4:
integer i, num i = 4 num = Abs(i) num = Abs(4) num = Abs(+4) num = Abs(-4)
This statement returns 4.2:
Abs(-4.2)
Abs method for DataWindows in the DataWindow Reference or online Help