WoW:API abs

From AddOn Studio
Jump to navigation Jump to search

WoW Lua

Returns the absolue value of the number.

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

Arguments[edit]

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

Returns[edit]

absoluteValue
Number - The absolute value of the argument number.

Example[edit]

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