Re: php mod operator bug

From: Date: Tue, 25 Jul 2000 11:47:45 +0000
Subject: Re: php mod operator bug
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8011@lists.php.net to get a copy of this message
Hi moshe! On Tue, 25 Jul 2000, moshe wrote: > when i try: > > $a=3566625435%256 > > i get $a=0. > but its need to be 155. looks like an out-of-range to me. iirc, the upper signed long limit is 2147483647, and the unsigned is the double (+1). BTW, if you divide with a power of 2, you can use shift operator (>>). > can some1 know about? maybe the math functions will help, I dunno. -- teodor

« previous php.general (#8011) next »