PostgreSQL ABSOLUTE VALUE
From w3cyberlearnings
Contents |
Postgresql absolute operator
Returns an absolute value for a give number. Similar to ABS() function.
Syntax absolute operator
a is a number.
@ a
Example 1
postgres=# SELECT @ -4 a4; a4 ---- 4 (1 row)
Example 2
postgres=# SELECT @ -44.04 a4; a4 ------- 44.04 (1 row)
Related Links
- factorial(!)
- absolute value(@)
- bitwise AND(&)
- bitwise OR(|)