Math.max(number,number...) +
Top
Previous
Next
SWiSH Player Support
SWF4 or later - Supported Internally
Syntax
Math.max(n1, n2[, n3 ....])
Arguments
n1: A number or expression.
n2: A number or expression.
n3: A list of numbers or expressions.
Returns
A number, the parameter with the highest value.
Description
Returns the value of the parameter with the highest value.
Sample
Math.max(
1
,
4
,-
3
);
// returns 4
Flash MX Differences
Under MX, the method is limited to two Arguments.
See Also
Math.max()
and
Math.min()
.