[Issue 18728] New: std.math.fdim does not handle nan correctly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 4 16:22:27 UTC 2018


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

          Issue ID: 18728
           Summary: std.math.fdim does not handle nan correctly
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: jack at jackstouffer.com

assert(fdim(real.nan, 2.0) == 0);

According to the C spec "If either argument is NaN, NaN is returned"

--


More information about the Digitalmars-d-bugs mailing list