in reply to Re: Zero Padding to the Right of the Decimal
in thread Zero Padding to the Right of the Decimal
So it might look like this with only one print/printf/sprintf:
my $i=0; while ($i <=100){ $i=$i+0.01; printf("%3.2f\n",$i); }
-Kurt
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Zero Padding to the Right of the Decimal
by Cody Pendant (Prior) on Jan 15, 2004 at 20:40 UTC | |
by boo_radley (Parson) on Jan 15, 2004 at 20:54 UTC | |
by revdiablo (Prior) on Jan 15, 2004 at 21:54 UTC | |
by Not_a_Number (Prior) on Jan 15, 2004 at 20:59 UTC |