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 (????) .....
In reply to For loop wierdness by alexg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |