Returns the smallest value in a sequence of numbers.
The version of min()
with one parameter interprets it as an array of numbers and returns the smallest number.
The version of min()
with two or more parameters interprets them as individual numbers and returns the smallest number.
Examples
Syntax
min(n0, n1)
min(nums)
Parameters
n0
Number:
first number to compare.
n1
Number:
second number to compare.
nums
Number[]:
numbers to compare.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/calculation.js and open a pull request!