Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: Re: Re: Zero Padding to the Right of the Decimalby Not_a_Number (Prior) |
on Jan 15, 2004 at 20:59 UTC ( [id://321669]=note: print w/replies, xml ) | Need Help?? |
printf( "%3.2f\n" , ($i + 0.01) );
doesn't work. Change to: printf( "%3.2f\n" , ($i += 0.01) );dave
In Section
Seekers of Perl Wisdom
|
|