peculiar behaviour of large integers with "<" and ">"

From: Date: Fri, 13 Jul 2001 18:07:36 +0000
Subject: peculiar behaviour of large integers with "<" and ">"
Groups: php.general 
Request: Send a blank email to php-general+get-57776@lists.php.net to get a copy of this message
Has anyone come across this before? // compare 5 to the max value of an integer if (5 < -2147483647) { print "This is"; } // knock a digit off the max and compare again if (5 < -214748364) { print "weird"; }

« previous php.general (#57776) next »