Link Search Menu Expand Document

Math.max methods

Explanation Find the maximum value.
Call format var v = Math.max ([ value_1 [, value_2 [,…]]])
Return value Returns the largest value of the specified arguments.
Arguments Number value_n Value to find the maximum
Exception None
Example of use
var v1 = Math.max (1, 2, 3);
print (v1, "¥ n");
var v2 = Math.max (-1, -2, -3);
print (v2, "¥ n");
Related item min method