This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/6783] remainder() inconsistently sets errno on domain error
- From: "mtk dot manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 31 Jul 2008 08:43:06 -0000
- Subject: [Bug math/6783] remainder() inconsistently sets errno on domain error
- References: <20080730122250.6783.mtk.manpages@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mtk dot manpages at gmail dot com 2008-07-31 08:42 -------
Created an attachment (id=2848)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2848&action=view)
test program
sample runs showing problem. Note that EDOM is set in one case, but not the
other.
$ /tmp/mt_remainder -- inf 1
errno == 0
fetestexcept() says: FE_INVALID
remainder(inf,1.00000000000000000e+00)=nan
0 FE_INVALID nan
$ /tmp/mt_remainder -- 1 0
errno == EDOM
fetestexcept() says: FE_INVALID
remainder(1.00000000000000000e+00,0.00000000000000000e+00)=nan
EDOM FE_INVALID nan
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6783
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.