format a string like sprintf?

bearophile bearophileHUGS at lycos.com
Tue Aug 16 06:51:41 PDT 2011


teo:

> What is the correct way in D to format a string like sprintf? I need to 
> pad a number with zeroes. I tried to use std.format.format and 
> std.string.format, but had some strange results.

Why don't you show one or more complete runnable examples that show your strange results? Both if there are bugs in Phobos to report in Bugzilla, or if you are using it badly, it's useful to know it.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list