Simple solution:
for( my $i = 0; $i < 6000; $i += 5 ) { say $i / 100 };; 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 ... 3.5 3.55 3.6 3.65 3.7 3.75 3.8 3.85 3.9 3.95 4 ...
In reply to Re: Wrong calculations in for loop
by BrowserUk
in thread Wrong calculations in for loop
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |