Re: Is this a bug?

From: Date: Mon, 20 Aug 2001 18:53:40 +0000
Subject: Re: Is this a bug?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63552@lists.php.net to get a copy of this message
you are right. <?php if (6448234192168122==6448234192168125) { echo 'A' ; } else { echo 'B' ; } ?> I tested with 99644xxx and 964xxxx It printed A. However, if you are down to 644xxx is prints B which is correct. Perhaps a limitation of 16 digits. ????? good catch --- Ratko <ratko@email.si> wrote: > Please try this: > <? > echo "996448234192168122"=="996448234192168125"; > ?> > > I get "true" as a result. How's that possible? > But if I do: > echo "996448234192168122"==="996448234192168125"; > then I get "false" as expected. > > php 4.0.6, Debian Potatoe Linux. > > Does this happen only on my computer? > > > thanks, > ratko > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== Mehmet Erisen http://www.erisen.com __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

« previous php.general (#63552) next »