math.max

Syntax

nr = math.max(n1,n2<,...>)

Get the maximum. Any number of arguments can be given.

Returns:

nr - maximum number

Arguments:

n1 - number

n2 - number

... - additional numbers for maximum comparison