goichi has asked for the wisdom of the Perl Monks concerning the following question:
was printed as follows.for (my $i = 2 ; $i >= 0.1 ; $i -= 0.1){ print $i, "\n"; }
Is this feature ? or bug?2 1.9 1.8 1.7 1.6 1.5 1.4 1.3 1.2 1.1 0.999999999999999 0.899999999999999 0.799999999999999 0.699999999999999 0.599999999999999 0.499999999999999 0.399999999999999 0.299999999999999 0.199999999999999
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reduce from 2 to 0.1.
by jeroenes (Priest) on Apr 10, 2001 at 19:13 UTC | |
by davorg (Chancellor) on Apr 10, 2001 at 19:22 UTC | |
|
Re: Reduce from 2 to 0.1.
by mirod (Canon) on Apr 10, 2001 at 19:40 UTC | |
|
Re: Reduce from 2 to 0.1.
by jink (Scribe) on Apr 10, 2001 at 19:43 UTC | |
by riffraff (Pilgrim) on Apr 10, 2001 at 20:21 UTC |