Math.max

From Data Realms Wiki

Revision as of 12:41, 3 April 2009 by Daman (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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