Find absolute value in oracle using ABS mathematical function

By Santhosh N

This explains how to find absolute value of the number in oracle using mathematical function, ABS.

There is a Mathematical function in oracle by the name, ABS which is used to find the absolute value of the given number.

Syntax: ABS(n)
Here n is the number that needs to be converted to the absolute number.

Ex1: SELECT ABS (-100) FROM dual;
This returns 100 as result.

Ex2: SELECT ABS (-100.75) FROM dual;
This returns 100.75 as result.

Ex3: SELECT ABS (100) FROM dual;
This returns 100 as result.

Related FAQs

This explains how to convert one datatype to other in oracle.
This explains how to convert the string to an interval Year to Month type in oracle.
This explains how to convert a string value to the timestamp value in oracle.
This explains how to convert the given number to the interval year to the month literal in oracle
Use Oracle TO_NUMBER to convert a string to a number and format the number in the desired nls language.
This explains how to convert the string to date format in oracle.
Find absolute value in oracle using ABS mathematical function  (1647 Views)