WoW:API abs: Difference between revisions
Jump to navigation
Jump to search
abs -Documentation by AlexanderYoshi-
No edit summary |
mNo edit summary |
||
| Line 24: | Line 24: | ||
;''Result'' | ;''Result'' | ||
absoluteValue := 14 | |||
---- | ---- | ||
Revision as of 05:05, 19 November 2004
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.