PHP 4.0 Bug #4605: Problem with double numbers

From: Date: Fri, 26 May 2000 08:34:52 +0000
Subject: PHP 4.0 Bug #4605: Problem with double numbers
Groups: php.dev 
Request: Send a blank email to php-dev+get-19476@lists.php.net to get a copy of this message
From: xtruksa@centrum.cz Operating system: Windows 2000 PHP version: 4.0 Latest CVS (26/05/2000) PHP Bug Type: Scripting Engine problem Bug description: Problem with double numbers Script: <? $a=10.87; $b=10.31; $c = $a + $b; echo "a=$a<BR>"; echo "b=$b<BR>"; echo "c=$c<BR>"; ?> ************************* Result in PHP3: a=10.87 b=10.31 c=21.18 ************************* Result in PHP4: a=10 b=10 c=20 ************************* WWW server: Apache 1.3.12 Win32 PHP version: PHP 4.0.0 - Win32 Distribution

« previous php.dev (#19476) next »