Math.abs
From Data Realms Wiki
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