www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 675] New: %a format is wrong for denormals. [bug in DMC?]

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=675

           Summary: %a format is wrong for denormals. [bug in DMC?]
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: clugdbug yahoo.com.au


I think this is a bug in the DMC library. It also affects the D name-mangling
of template float arguments.

void main()
{
    printf("%La %La\n", 0x1p-16382L, 0x1p-16383L);
}

prints:
-----------
0x1p-16382 0x1p-16384
------------


-- 
Dec 11 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=675


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|%a format is wrong for      |%a format has an out-by-1
                   |denormals. [bug in DMC?]    |bug for denormals.




------- Comment #1 from clugdbug yahoo.com.au  2009-02-25 02:58 -------
If x is denormal, the %La format always prints the exponent higher by 1, than
the correct value. The mantissa is always correct.


-- 
Feb 25 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=675





------- Comment #2 from clugdbug yahoo.com.au  2009-02-27 07:36 -------
I thought the problem might have been in frexpl(), but it isn't -- I can
confirm that frexpl works correctly. The bug must be in __pfloatfmt somewhere.


-- 
Feb 27 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=675


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #3 from clugdbug yahoo.com.au  2009-04-21 09:21 -------
Fixed 2.029.


-- 
Apr 21 2009