What does math.min do?

The title says it all. So I’ve checked the developer hub, but it’s still pretty vague to me.

5 Likes

It returns the smallest number of its arguments

print(math.min(5, 10, 1, -5, 500)) -- -5

The opposite of this is math.max. It returns the largest

17 Likes