One thing I did not see mentioned in the preceeding answers to your question is that the 3 in %3.2f is pointless. Perhaps you were attempting to pad the LHS of the decimal to 3 places? This would be accomplished with %6.2f. Note that the number to left of the decimal is how much to pad the entire thing, not just the LHS.
Also, not to toot my own horn, but the entire construct can be reduced to a single line of code:
printf "%6.2f\n", $_/100 for 0 .. 100*100;In reply to Re: Zero Padding to the Right of the Decimal
by revdiablo
in thread Zero Padding to the Right of the Decimal
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |