February 29, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1881

           Summary: feqrel nonsensical for two identical float arguments
           Product: D
           Version: 2.011
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: clugdbug@yahoo.com.au
        ReportedBy: clugdbug@yahoo.com.au


Given
float a;
assert(feqrel(a,a) == real.mant_dig);

which is nonsensical; the return value should never exceed the precision of the arguments. Should be float.mant_dig.

The solution is to turn feqrel into a template, and require both arguments to be the same type.


-- 

March 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1881


clugdbug@yahoo.com.au changed:

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




------- Comment #1 from clugdbug@yahoo.com.au  2008-03-07 08:21 -------
Fixed D2.012


--