www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18733] New: std.math.remquo's behavior with infinity is

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

          Issue ID: 18733
           Summary: std.math.remquo's behavior with infinity is platform
                    dependent
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: jack jackstouffer.com

version(X86_64)
    assert(remquo(1.0, real.infinity, n) == 1.0);
else
    assert(remquo(1.0, real.infinity, n) is -real.nan);

D should not have these inconsistencies, and should unify the behavior of C
libraries into a logical whole.

--
Apr 05 2018