This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/6779] New: remainder() wrongly gives a domain error for (NaN, 0)
- From: "mtk dot manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Jul 2008 11:14:27 -0000
- Subject: [Bug math/6779] New: remainder() wrongly gives a domain error for (NaN, 0)
- Reply-to: sourceware-bugzilla at sourceware dot org
The posix reaminder() spec says:
==
If x or y is NaN, a NaN shall be returned.
If x is infinite or y is 0 and the other is non-NaN, a domain error shall occur,
and either a NaN (if supported), or an implementation-defined value shall be
returned
==
On glibc 2.8, remainder(NaN, 0) gives a domain error (EDOM, FE_INVALID). As per
the above spec, it should return a NaN without error.
--
Summary: remainder() wrongly gives a domain error for (NaN, 0)
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: aj at suse dot de
ReportedBy: mtk dot manpages at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6779
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.