WoW:API abs

WoW Lua

Returns the absolue value of the number.

absoluteValue = math.abs(num);
absoluteValue = abs(num);

ArgumentsEdit

num
Number - number to return numeric (absolute) value of.

ReturnsEdit

absoluteValue
Number - The absolute value of the argument number.

ExampleEdit

print(abs(-14)); -- 14