public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mtk dot manpages at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug math/6784] fmod() inconsistently sets errno on domain error
Date: Thu, 31 Jul 2008 08:47:00 -0000	[thread overview]
Message-ID: <20080731084608.17960.qmail@sourceware.org> (raw)
In-Reply-To: <20080730122926.6784.mtk.manpages@gmail.com>


------- Additional Comments From mtk dot manpages at gmail dot com  2008-07-31 08:46 -------
Created an attachment (id=2849)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2849&action=view)
test program

See also http://sourceware.org/bugzilla/show_bug.cgi?id=6783

sample runs showing problem.  Note that EDOM is set in one case, but not the
other.

$ /tmp/mt_fmod -- inf 1
errno == 0
fetestexcept() says:  FE_INVALID
fmod(inf,1.00000000000000000e+00)=nan
0 FE_INVALID nan

$ /tmp/mt_fmod -- 1 0
errno == EDOM
fetestexcept() says:  FE_INVALID
fmod(1.00000000000000000e+00,0.00000000000000000e+00)=nan
EDOM FE_INVALID nan

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6784

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


  reply	other threads:[~2008-07-31  8:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-30 12:30 [Bug math/6784] New: " mtk dot manpages at gmail dot com
2008-07-31  8:47 ` mtk dot manpages at gmail dot com [this message]
2010-09-11 15:47 ` [Bug math/6784] " mtk dot manpages at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080731084608.17960.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).