php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4676 Incorrect float calculation 5.5/2=2.5 (instead 2.75)
Submitted: 2000-05-29 19:50 UTC Modified: 2000-06-09 15:16 UTC
From: phaigner at mbs42 dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Release Candidate 2 OS: Windows98, PSW 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phaigner at mbs42 dot de
New email:
PHP Version: OS:

 

 [2000-05-29 19:50 UTC] phaigner at mbs42 dot de
<HTML>
<BODY>
<?
echo "5.5/3=" . 5.5/3 . " ---> correct<br>";
echo "5.5/2=" . 5.5/2 . " ---> result is 2.5 on Win98/PWS, should be 2.75 ";
?>
</BODY>
</HTML>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-09 14:03 UTC] stas at cvs dot php dot net
seems to be the famous locale problem
 [2000-06-09 15:16 UTC] andi at cvs dot php dot net
Should be fixed in the latest CVS tree. You can get a build from va.php.net/~andi/php-4.0.1dev-Win32.zip
Please open a new bug report if you still have these problems
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC