detecting negative numbers

From: Date: Sun, 16 Jul 2006 15:37:20 +0000
Subject: detecting negative numbers
Groups: php.db 
Request: Send a blank email to php-db+get-42204@lists.php.net to get a copy of this message
Currently I have this: if($quant > $amount) {echo "You don't have that many!"; } $quant is the user inputted amount and $amount is the amount that they actually have. Is there any way of checking if the result is negative rather than doing what I have above? -- Dave W

« previous php.db (#42204) next »