Use ABS 2
/* mysql> select ABS(-4.05022); +---------------+ | ABS(-4.05022) | +---------------+ | 4.05022 | +---------------+ 1 row in set (0.01 sec) */ select ABS(-4.05022);