A numeric function that returns the absolute value of a numeric expression.
Synopsis
ABS(numeric-expression)
{fn ABS(numeric-expression)}
Arguments
numeric-expression  A number whose absolute value is to be returned. 
Description
ABS returns the absolute value, which is always zero or a positive number. ABS returns the same data type as numeric-expression. If numeric-expression is not a number (for example, the string 'abc') ABS returns 0. ABS returns NULL when passed a NULL value.
Note that ABS can be used as an ODBC scalar function (with the curly brace syntax) or as an SQL general function.
Examples
These examples show the effect of ABS on three numbers.
SELECT {fn ABS(99)}
returns 99.
SELECT {fn ABS(-99)}
returns 99.
SELECT {fn ABS(99.0)}
returns 99.0.
See Also
CONVERT