PostgreSQL - Numeric Function
PostgreSQL numeric functions are used primarily for numeric manipulation and/or mathematical calculations. The following table details the numeric functions − ABS(X) The ABS() function returns the absolute value of X. Consider the following example − testdb =# SELECT ABS ( 2 ); +---------------------------------------------------------+ | ABS ( 2 ) | +---------------------------------------------------------+ | 2 | +---------------------------------------------------------+ 1 row in set ( 0.00 sec ) testdb =# SELECT ABS (- 2 ); +---------------------------------------------------------+ | ABS ( 2 ) | +---------------------------------------------------------+ | 2 | +---------------------------------------------------------+ 1 row in set ( 0.00 se...