Hi Mark, thanks for your reply and I should have explained further.
The total length I'm looking for is 8. So if I see a four character string (i.e TEST) I know I should append 4 zeros. If I see a three character string, I would append 5 zeros etc.
I thought sprintf would be a natural choice for this but couldn't get it to work...
In reply to Re: Re: sprintf question
by Anonymous Monk
in thread sprintf to zero-pad on the right
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |