www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21606] New: pow(NaN,0) gives 1 not NaN

https://issues.dlang.org/show_bug.cgi?id=21606

          Issue ID: 21606
           Summary: pow(NaN,0) gives 1 not NaN
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: bugzilla bernis-buecher.de

unittest
{
    assert(isNaN(pow(float.nan,0)));
    assert(isNaN(pow(double.nan,0)));
    assert(isNaN(pow(real.nan,0)));
}

--
Feb 03