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: nob...@puremagic.com Reporter: j...@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." --