PostgreSQL ABS
From w3cyberlearnings
Contents |
Postgresql ABS
This function returns the absolute value of X input.
Syntax ABS
X is a number.
ABS(X);
Example 1
postgres=# SELECT ABS(-32); abs ----- 32 (1 row)
Example 2
postgres=# SELECT ABS(-0032); abs ----- 32 (1 row)