#20684 [Opn->Bgs]: Loop with double bug
| From: | derick@php.net | Date: | Wed, 27 Nov 2002 21:12:22 +0000 |
| Subject: | #20684 [Opn->Bgs]: Loop with double bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26002@lists.php.net to get a copy of this message | ||
ID: 20684
Updated by: derick@php.net
Reported By: gosciu@gg3d.com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows / Linux
PHP Version: 4.2.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
http://www.php.net/manual/en/printwn/language.types.float.php
Previous Comments:
------------------------------------------------------------------------
[2002-11-27 15:11:04] gosciu@gg3d.com
From
<?
for ($i = -5000;
$i <= 5000;
$i = $i + 0.01)
{
echo "$i<br>";
}
?>
We've got something like this:
[...]
-4771
-4770.99
-4770.98
-4770.97
-4770.96
-4770.95
-4770.94
-4770.92999999
-4770.91999999
-4770.90999999
[...]
It brokes in random place.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20684&edit=1