Help for this page

Select Code to Download


  1. or download this
    for my $num ( 0 .. 101 ) {
       $num += 0.005;
       printf "%.2f\n", $num;
    }
    
  2. or download this
    0.01
    1.00
    2.00
    ...
    ..
    8.01
    ..
    
  3. or download this
    for my $num ( 0 .. 101 ) {
       $num += 0.0005;
       my $result = sprintf "%.3f", $num;
       print "$result\n";
    }