Link Search Menu Expand Document

Math.min methods

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