This Oracle tutorial explains how to use the Oracle/PLSQL ABS function with syntax and examples.
The Oracle/PLSQL ABS function returns the absolute value of a number.
The syntax for the ABS function in Oracle/PLSQL is:
ABS( number )
The number to convert to an absolute value.
The ABS function returns a numeric value.
The ABS function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle ABS function examples and explore how to use the ABS function in Oracle/PLSQL.
For example:
ABS(-23)
Output: 23
ABS(-23.6)
Output: 23.6
ABS(-23.65)
Output: 23.65
ABS(23.65)
Output: 23.65
ABS(23.65 * -1)
Output: 23.65