ABS
ABS(n)

Returns the absolute value of a number: the value with any negative sign removed.

Example

SQL> SELECT ABS(-1), ABS(1)
  2  FROM dual;

   ABS(-1)     ABS(1)
---------- ----------
         1          1

Get Oracle SQL: the Essential Reference now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.