mysql> select abs(3-5); +----------+ | abs(3-5) | +----------+ | 2 | +----------+ 1 row in set (0.00 sec)