Name

min()

Examples
d = min(5, 9)  # Sets 'd' to 5
e = min(-4, -12)  # Sets 'e' to -12
f = min(12.3, 230.24)  # Sets 'f' to 12.3
values = 5, 1, 2, -3  # Create an array of ints
h = min(values)  # Sets 'h' to -3
Description Determines the smallest value in a sequence of numbers, and then returns that value. min() accepts either two or three float or int values as parameters, or an array of any length.
Syntax
min(a, b)
min(a, b, c)
min(list)
Parameters
aint, or float: first number
bint, or float: second number
cint, or float: third number
listfloat, or int: list of numbers to compare
Related max()
Updated on Tue Jul 11 06:52:24 2017.
Creative Commons License