Wikia

WoWWiki

API abs

Talk0
101,698pages on
this wiki
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

Around Wikia's network

Random Wiki