ABS() in MySQL — How It Works
What the MySQL ABS() function does, with an example.
Published October 21, 2026
ABS() returns the absolute (non-negative) value of a number.
Key points
- Part of standard SQL functions available in MySQL for working with query results
Example
SELECT ABS(-15); -- 15