[Issue 5687] New: std.string.format() error with "%a"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 2 23:26:38 PST 2011


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

           Summary: std.string.format() error with "%a"
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bugzilla at kyllingen.net


--- Comment #0 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2011-03-02 23:23:44 PST ---
Magnus Lie Hetland wrote in D.learn:

I just noticed that writefln("%a", 1.2) writes 0x1.3333333333333p+0, while
writeln(format("%a", 1.2)) (that is, with std.string.format) writes
0x9.9999999999998p-3 ... wouldn't it be nice to be consistent here? (The former
is what printf in gcc gives.)

-- 
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