|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-29 12:12 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 05:00:01 2025 UTC |
Description: ------------ the comparison in a special for-loop is not correct. Reproduce code: --------------- <?php for($i = 400.84; $i < 400.88; $i = $i + 0.01) { echo $i; echo "<br>"; } ?> Expected result: ---------------- 400.84<br> 400.85<br> 400.86<br> 400.87<br> Actual result: -------------- 400.84<br> 400.85<br> 400.86<br> 400.87<br> 400.88<br>