php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4605 Problem with double numbers
Submitted: 2000-05-26 10:34 UTC Modified: 2000-05-26 11:56 UTC
From: xtruksa at centrum dot cz Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (26/05/2000) OS: Windows 2000
Private report: No CVE-ID: None
 [2000-05-26 10:34 UTC] xtruksa at centrum dot cz
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-26 11:11 UTC] hholzgra at cvs dot php dot net
see #4479
 [2000-05-26 11:56 UTC] thies at cvs dot php dot net
please update your Zend CVS - should be fixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 19:01:26 2024 UTC