Bug 6448 – writef("%05d", BigInt) problem

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-08-07T05:30:00Z
Last change time
2011-09-07T00:11:38Z
Keywords
patch
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-08-07T05:30:41Z
(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
Comment #1 by k.hara.pg — 2011-09-02T05:27:43Z
Comment #2 by clugdbug — 2011-09-07T00:11:38Z