[Bug 55] New: doFormat precision fails on integers < 10

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 18 01:26:45 PST 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=55

           Summary: doFormat precision fails on integers < 10
           Product: D
           Version: 0.149
          Platform: All
               URL: http://www.digitalmars.com/drn-
                    bin/wwwnews?digitalmars.D.learn/2828
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: korslund at gmail.com


doFormat fails to add padding for integers less than 10. A test case is

writefln("number = %.8d", cast(ulong)7);

which outputs '7' without padding. For more details, see

http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.learn/2828


-- 




More information about the Digitalmars-d-bugs mailing list