Returns the absolute value (positive value) of the specified number (Integer, Double, Decimal etc).
Here are some examples:
Integer i = -42; Integer i2 = math.abs(i); system.debug(i2);
Output: 42