Re[2]: [PHP] Bug?

From: Date: Wed, 08 Aug 2001 09:06:56 +0000
Subject: Re[2]: [PHP] Bug?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61775@lists.php.net to get a copy of this message
Hello Maxim, Lets try this: echo (int)((8.85-8)*100000); IMHO, this is miscalculation because 8.85 is float so when we make type cast to int we got wrong result. Wednesday, August 08, 2001, 12:01:25 PM, you wrote: MM> good point. MM> ...and try this out: MM> echo (int)((8.85-8)*100).'<br>'; MM> echo ((8.85-8)*100).'<br>'; MM> Kinda weird, MM> can anyone explain? MM> Thanks, MM> Maxim Maletsky -- Best regards, Vitali mailto:falileev@itos.eu.org

« previous php.general (#61775) next »