digitalmars.D.bugs - [Issue 18728] New: std.math.fdim does not handle nan correctly
- d-bugmail puremagic.com (16/16) Apr 04 2018 https://issues.dlang.org/show_bug.cgi?id=18728
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 puremagic.com Reporter: jack jackstouffer.com assert(fdim(real.nan, 2.0) == 0); According to the C spec "If either argument is NaN, NaN is returned" --
Apr 04 2018