ABS
Syntax
<abs-expression> := 'ABS(' <Number> ')'
Since
2.0
Return-type
Number
Description
Returns the absolute value of a the argument. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned. If the argument is NULL, the value NULL is returned.
Examples
ABS( 1.0 )
= 1.0
ABS( -1 )
= 1
ABS( 0 )
= 0
ABS( NULL )
= NULL
See also
CEIL, FIRST
