Type Function Library math.* Return value Number Revision Release 2024.3703 Keywords min, minimum See also math.max()
Return the minimum value among its arguments.
print(math.min(1.2, -7, 3)) ---> -7 print(math.min(0, 1e-9)) ---> 0 print(math.min(0, 1/0, math.huge)) ---> 0