Reference min()

min()

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.

Returns

Number: minimum number.
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!

Related References