max( first, second )

Returns the maximum of two numbers.

The first number.
The second number.

Examples Edit

print(max(40, 20))    -- 40

print(max(2.7, -3.5)) -- 2.7

print(max(8, 8))      -- 8

See also Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.