|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-18 11:47 UTC] rasmus@php.net
-Status: Open
+Status: Bogus
[2010-11-18 11:47 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 22:00:01 2025 UTC |
Description: ------------ iterations give aproximation beetween two val, but . Every time there value are the same : 4.38 .. 10 Test script: --------------- for ($A = 0.8; $A < 5 * 3.1416; $A+=0.01) { echo $A."<br />"; } Expected result: ---------------- 0.08 0.09 ... 15.68 15.69 15.7 Actual result: -------------- 0.8 0.81 ... 4.36 4.37 4.38 4.3899999999999 4.3999999999999 ... 9.9899999999998 9.9999999999998 10.01 10.02 ...