php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11192 Calculate issue
Submitted: 2001-05-30 07:48 UTC Modified: 2001-05-30 10:52 UTC
From: ading at copeland-corp dot com Assigned:
Status: Not a bug Package: Performance problem
PHP Version: 4.0.4pl1 OS: nt server 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
22 - 6 = ?
Subscribe to this entry?

 
 [2001-05-30 07:48 UTC] ading at copeland-corp dot com
<?
  $b = 0;
  $o = 0.1;
  $k = 1000;
  for($i=0;$i<$k;$i++)
    $b += $o;
    
  echo $b."|". $o * $k;
?>

the result will be '99.999999999999|100', it isn't correct!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-30 10:52 UTC] sniper@php.net
not a bug. check bug report #8164

--Jani

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 06:01:23 2019 UTC