math.abs (x)

Returns the absolute value of x.