math.min()

Type Function
Library math.*
Return value Number
Revision 2017.3060
Keywords min, minimum
See also math.max()

Overview

Return the minimum value among its arguments.

Syntax

math.min( x, ... )
x (required)

Number. A number.

Examples

print(math.min(1.2, -7, 3))        ---> -7
print(math.min(0, 1e-9))           ---> 0
print(math.min(0, 1/0, math.huge)) ---> 0