Skip to main content Accessibility Feedback

Numbers

Math.min()

Returns the lowest number from a set of numbers. Pass each number in as an argument.

// returns 3.14
Math.min(42, 3.14, 27);

// returns -42
Math.min(-42, -3.14, -27);

Works back to at least IE6.