WoW:API abs: Difference between revisions
Jump to navigation
Jump to search
abs -Documentation by AlexanderYoshi-
m (cat) |
(Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".) |
||
| Line 1: | Line 1: | ||
{{:Lua/Libshortcut|abs|math.abs}} | |||
<center>'''abs''' ''-Documentation by AlexanderYoshi-''</center> | <center>'''abs''' ''-Documentation by AlexanderYoshi-''</center> | ||
| Line 31: | Line 32: | ||
: Returns the absolue value of the number. | : Returns the absolue value of the number. | ||
{{ | {{LUA}} | ||
Revision as of 12:14, 26 May 2006
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.