Version: v0.7.1 - Beta.  We welcome contributors & feedback.

Number.max

max($otherNumber) -> number

Description

Get the higher value between this number and $otherNumber.

See also List.max.

$num = 2
$num.max(3) //= 3

$num = 10
$num.max(1) //= 10

$num = -5
$num.max(-20) //= -5

See Also