|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-18 10:00 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 22:00:01 2025 UTC |
Description: ------------ bug sample <? $tot = 0.3; for($i=0;$i < 3; $i++) { echo("==> $tot, "); $tot -= 0.1; echo("==> $tot<br>"); } ?> result ==> 0.3, ==> 0.2 ==> 0.2, ==> 0.1 ==> 0.1, ==> -2.77555756156E-017 why ?