Function: math.abs

Returns the absolute value of a number.

Arguments

Arguments
x An integer or floating-point number.

Raised exceptions

Exceptions
TypeError If x is not an integer or floating-point number.
ValueError If x is MinInt64.