Math.max

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
Daman (Talk)
(Example)

Latest revision as of 12:41, 3 April 2009

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