in reply to Dynamical formating with sprintf?
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"
|
|---|