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: nob...@puremagic.com Reporter: j...@jackstouffer.com assert(fdim(real.nan, 2.0) == 0); According to the C spec "If either argument is NaN, NaN is returned" --