Returns theabsolute value of x.
When x is a complex number, the result is the magnitude of the complex number:
When x has a data type of complex, the result is double-precision floating-point. All other data types produce a result with the same data type as x.
x = [-1, 2, 3, -4, 5] PRINT, ABS(x)
1 2 3 4 5
x = COMPLEX(4, 3) PRINT, ABS(x)
5.0000000