scalar
ABS
Absolute magnitude; the most negative fixed-width integer can overflow. Example target: PostgreSQL 17. No tables or extensions required.
Formal Syntax & Structure
sql syntaxsql
ABS(x)Working Example
Example Snippetsql
SELECT abs(-7);Absolute magnitude; the most negative fixed-width integer can overflow. Example target: PostgreSQL 17. No tables or extensions required.
ABS(x)SELECT abs(-7);