Math.max
From Data Realms Wiki
Revision as of 12:41, 3 April 2009 by
Daman
(
Talk
)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to:
navigation
,
search
Function
Syntax
math.max(
number
Number, ··· )
Description:
Returns the maximum value among its arguments.
Returns
number
Number
Example
Description
Prints the maximum value in the list of numbers provided.
Code
print
(
math.max
(
1
,
5
,
3
,
2
,
76
,
3
,
5
,
1
,
64
,
1213427565
,
34613
,
412321
,
523423
)
)
;
Output
1213427565
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