(Maybe I have already filed this bug). D2 code: import std.stdio, std.bigint; void main() { int x = 100; writefln("%010d", x); BigInt bx = x; writefln("%010d", bx); } DMD 2.054 gives a wrong output: 0000000100 100
https://github.com/D-Programming-Language/phobos/pull/230
https://github.com/D-Programming-Language/phobos/commit/568b04658df684118d769f10cb1f4a9413e8c9e5