Math.max

From Data Realms Wiki

Jump to: navigation, search
Function
Syntaxmath.max( number Number, ยทยทยท )
Description:
Returns the maximum value among its arguments.
Returnsnumber Number




Example
DescriptionPrints the maximum value in the list of numbers provided.
Code
  1. print(math.max(1,5,3,2,76,3,5,1,64,1213427565,34613,412321,523423));
Output1213427565
Personal tools