WoW:API abs: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{wowapi}}
{{:Lua/Libshortcut|abs|math.abs}}
{{:Lua/Libshortcut|abs|math.abs}}



Revision as of 21:28, 12 August 2008

WoW API < abs

Lua/Libshortcut

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.


Template:LUA