I have a code like this:
$i = 2;
while ($i >= -0.2) {
echo $i . "<BR>";
$i = $i + (-0.2);
}
but, the result will be:
2
1.8
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
2.77555756156E-016
-0.2
How come 0.2 minus 0.2 equal to 2.77555756156E-016? Can any one show the way out of this? Many thanks.