Mega Code Archive

 
Categories / Oracle PLSQL Tutorial / Numerical Math Functions
 

ABS(x) gets the absolute value of x

The absolute value of a number is that number without any positive or negative sign. The following example displays the absolute value of 10 and - 10: SQL> SELECT ABS(10), ABS(-10) FROM dual;    ABS(10)   ABS(-10) ---------- ----------         10         10 SQL>