|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-28 03:40 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 08:00:01 2025 UTC |
there is a problem with for loop code: $a=1; $b=1.5; $step=0.1; for ($i=$a;$i<=$b;$i=$i+$step) { echo "$i<BR>"; } prints: 1 1.1 1.2 1.3 1.4 and 1.5 value is skipped when changing this values to $a=10;$b=15;$step=1; everything is OK (15 is printed) so I guess problem is with floating point values