Type Function Library math.* Return value Number Revision Release 2022.3683 Keywords max, maximum See also math.min()
Returns the maximum value among its arguments.
print(math.max(1.2, -7, 3)) --->3 print(math.max(0, -100000000)) --->0 print(math.max(0, 1/0, math.huge)) --->inf