Mathf.Min
Scripting > Runtime Classes > Mathf
Mathf.Min

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

Description

Returns smaller of the two values.

// prints 1.2
print(Mathf.Min(1.2, 2.4));

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

Description

Returns smaller of the two values.

// prints 1
print(Mathf.Min(1, 2));