math.max()
Selects the largest number.
Signature
math.max(first, ...rest)
Parameters
At least one number.
Returns
Selected original value, first on ties.
Behavior
Uses exact cross-representation numeric comparison. A single NaN passes through.
Errors
Compared values must be ordered numbers.
Example
use math
assert(math.max(1, 3, 2) == 3)