isNegative() public static méthode

Is the current value negative; less than zero.
public static isNegative ( integer $number ) : boolean
$number integer
Résultat boolean
Exemple #1
0
 public function testIsNegative()
 {
     isTrue(Vars::isNegative(-1));
     isTrue(Vars::isNegative(-384));
     isFalse(Vars::isNegative(0));
     isFalse(Vars::isNegative(34));
 }