CoronaSDK 2013.1125 | Released: 23 May 2013, 3:44pm | What's New | Download Now
These docs are *very* out of date.
You will be redirected to the new docs in a few seconds.
If you are certain you want to see the old docs, click cancel.
Cancel | Continue to new docs
You will be redirected to the new docs in a few seconds.
If you are certain you want to see the old docs, click cancel.
Cancel | Continue to new docs
math.max()
Description:
Return the maximum value among its arguments.
Syntax:
math.max (x [, ...])
Example:
print (math.max(1.2, -7, 3)) --->3 print (math.max(0, -100000000)) --->0 print (math.max(0, 1/0, math.huge)) --->inf
Parameters:
x [, ...]
A number or list of numbers.
Returns:
A number.
Remarks:
Supported on operating systems and platforms for build numbers shown:
- Mac OS X:Corona SDK 1.0
- Windows:Corona SDK 2.0
- iOS:Corona SDK 1.0
- Android:Corona SDK 2.0