[Issue 6448] New: writef("%05d", BigInt) problem

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 7 05:30:43 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6448

           Summary: writef("%05d", BigInt) problem
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-08-07 05:30:41 PDT ---
(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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list