Numeric datatype. Returns the absolute value of a number. You can enter any valid expression.
Return Value
Positive numeric value. ABS returns the same datatype as the numeric value passed as an argument. If you pass a Double, it returns a Double. Likewise, if you pass an Integer, it returns an Integer.
NULL if you pass a null value to the function.
Example
The following expression returns the difference between two numbers as a positive value, regardless of which number is larger: