alexg has asked for the wisdom of the Perl Monks concerning the following question:
Outputs: (... and ???? added by me)for(my $x = 0; $x <= 0.1; $x += 0.001){ print "$x\n"; }
Is this a known bug in Perl? I'm using 5.6.1 on i386-linux0 0.001 0.002 ...... 0.07 0.071 0.07200000000000001 (????) 0.07300000000000001 (????) .....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: For loop wierdness
by DrHyde (Prior) on Oct 08, 2003 at 13:20 UTC | |
|
Re: For loop wierdness
by Albannach (Monsignor) on Oct 08, 2003 at 13:33 UTC | |
|
Re: For loop wierdness
by Abigail-II (Bishop) on Oct 08, 2003 at 13:40 UTC |