Being productively lazy, I'd use a module (kudos to all the posters who suggested that).
Another technique is to build the string being used as sprintf's format on the fly. I occasionally do this, mostly as it's about the easiest way to produce "pretty" output to a plain text file.
emc
Information about American English usage here and here.
Floating point issues? Read this before posting: "What Every Computer Scientist Should Know about Floating Point Arithmetic"
In reply to Re: Dynamical formating with sprintf?
by swampyankee
in thread Dynamical formating with sprintf?
by tamaguchi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |