Oracle ABS Function: Usage & Examples
In Oracle, ABS is a mathematical function used to return the absolute value of a number. The syntax is as follows:
ABS(number)
The number is the digit for which the absolute value needs to be calculated. For example, to calculate the absolute value of -5, you can use the following query:
SELECT ABS(-5) FROM dual;
This will give a result of 5.