Returns the absolute value of a numeric expression.
ABS( numeric-expression )
numeric-expression The number whose absolute value is to be returned.
An absolute value of the numeric expression.
| Numeric-expression data type | Returns |
|---|---|
|
INT |
INT |
|
FLOAT |
FLOAT |
|
DOUBLE |
DOUBLE |
|
NUMERIC |
NUMERIC |
SQL/2003 SQL foundation feature outside core SQL.
The following statement returns the value 66.
SELECT ABS( -66 ); |
| Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |