Math.abs
From Data Realms Wiki
Revision as of 13:00, 31 March 2009 by
Daman
(
Talk
)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to:
navigation
,
search
Function
Syntax
Math.abs(
Number
Value )
Description:
Returns the Absolute value of the number
Returns
Number
Example
Description
Prints the absolute value of -2
Code
AbsNum
=
Math.abs
(
-
2
)
print
(
AbsNum
)
Output
2
Category
:
Lua
Views
Page
Discussion
View source
History
Personal tools
Log in / create account
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Search
Toolbox
What links here
Related changes
Special pages
Printable version
Permanent link