WoW:API abs: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (cat)
Line 33: Line 33:
----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API Functions|abs]]
[[Category:API Math Functions|abs]]

Revision as of 04:54, 4 January 2006

abs -Documentation by AlexanderYoshi-

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:WoW API