max() public static method

Decrease the number to the maximum if above threshold.
public static max ( integer $number, integer $max ) : integer
$number integer
$max integer
return integer
Beispiel #1
0
 public function testMax()
 {
     is(-15, Vars::max(-15, 50));
     is(12, Vars::max(12, 50));
     is(50, Vars::max(55, 50));
     is(50, Vars::max(123, 50));
 }