should be$b[n]=sprintf("%.2f", $a[n]);
You should use strict and warnings which would automatically catch this mistake for you.$b[$n]=sprintf("%.2f", $a[$n]);
-Blake
In reply to Re: Re: sprintf and for loop weirds???
by blakem
in thread sprintf and for loop weirds???
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |