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