This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/19869] floor and fmod not consistent with each other
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 29 Mar 2016 12:30:25 +0000
- Subject: [Bug math/19869] floor and fmod not consistent with each other
- Auto-submitted: auto-generated
- References: <bug-19869-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19869
--- Comment #8 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Andreas Schwab from comment #7)
> remainder(8, 1.6) returns -4.4e-16, thus, per definitionem, fmod(8, 1.6)
> returns remainder(8, 1.6) + 1.6 = 1.5999999999999996447.
POSIX does not define fmod in terms of remainder. Is there another standard
which does? (remainder seems to uniquely determine its result, though.)
--
You are receiving this mail because:
You are on the CC list for the bug.