writefln("%0.4f",6666/1000000.0) gives 0.0066 instead of 0.0067
Reproduced with dmd on Windows (first known affected version is 0.102).
Doesn't reproduced with gdc on Windows and with dmd on Linux.
Comment #1 by bugzilla — 2007-08-12T22:18:16Z
DMD (and GDC) rely on the underlying C runtime library to handle %f formatting. I've refiled it as a bug with the DMC C compiler.