digitalmars.D.bugs - [Issue 18727] New: std.math.fmin does not handle nan correctly
- d-bugmail puremagic.com (18/18) Apr 04 2018 https://issues.dlang.org/show_bug.cgi?id=18727
https://issues.dlang.org/show_bug.cgi?id=18727 Issue ID: 18727 Summary: std.math.fmin 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(fmin(2.0, real.nan) is real.nan); According to the C spec "If one of the two arguments is NaN, the value of the other argument is returned. Only if both arguments are NaN, NaN is returned." --
Apr 04 2018