min
Summary
Returns the smaller of a set of numeric expressions.
Syntax
Math.min([ number1 [, number2 [... [, numberN ]]]])
Examples
The following code shows how to get the smaller of two expressions.
var x = Math.min(107 - 3, 48 * 90);
document.write(x);
// Output:
// 104
Remarks
The optional number1, number2, …, numberN arguments are numeric expressions to be evaluated.
If no arguments are provided, the return value is equal to Number.POSITIVE_INFINITY. If any argument is NaN , the return value is also NaN.
See also
Other articles
Attributions
Microsoft Developer Network: Windows Internet Explorer JavaScript reference Article