Quantcast API abs - WoWWiki - Your guide to the World of Warcraft
Recent changes Random page
GAMING
Gaming
 
StarCraft Wiki
Super Smash Wiki
Halopedia
Diablo Wiki
FFXIclopedia
Grand Theft Wiki
See more...

API abs

From WoWWiki

Jump to: navigation, search
Main Menu


"abs" is a shortcut for the standard Lua library function "math.abs". They can both be used interchangeably.

Returns the absolue value of the number.

abs(num);

Arguments
(Number num)
num 
The number to convert

Returns
Number absoluteValue
absoluteValue 
The absolute value of the inputed number num

Example
local absoluteValue = abs(-14);
Result
absoluteValue := 14

Description
Returns the absolue value of the number.


 


This is a Lua function and documented as part of the World of Warcraft API

Rate this article:
Share this article: