API abs
From WoWWiki
"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
