ABS Function
The ABS function returns the absolute value of a numeric value expression.
ABS is a Neoview SQL extension.
ABS (numeric-expression)
numeric-expression
is an SQL numeric value expression that specifies the value for the argument of the ABS
function. The result is returned as an unsigned numeric value if the precision of the argument
is less than 10 or as a LARGEINT if the precision of the argument is greater than or equal to
10. See
"Numeric Value Expressions" (page
Example of ABS
This function returns the value 8:
ABS (-20 + 12)
344
SQL Functions and Expressions
265).