[Issue 18727] New: std.math.fmin does not handle nan correctly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 4 16:10:45 UTC 2018
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 at puremagic.com
Reporter: jack at 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."
--
More information about the Digitalmars-d-bugs
mailing list