std.string.format

Egor Starostin egorst at gmail.com
Tue Dec 26 22:04:35 PST 2006


> > 2. on Windows:
> > format(format("%%1.%df",4),666666/1000000.0) produces "0.6667"
> > but
> > format(format("%%1.%df",4),66666/1000000.0) produces "0.0666"
> >
> > on Linux second line gives correct answer "0.0667"
> This sounds like a C library issue. Are you using GDC, or DMD ?
DMD

In Python for Windows this code works correct. Does this means that Python doesn't
use C library in such case?



More information about the Digitalmars-d mailing list