Mathf.Max Manual     Reference     Scripting  
Scripting > Runtime Classes > Mathf
Mathf.Max

static function Max (a : float, b : float) : float

Description

Returns larger of the two values.

prints 2
print(Mathf.Max(1, 2));

static function Max (a : int, b : int) : int

Description

Returns larger of the two values.

prints 2
print(Mathf.Max(1, 2));