This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/19869] floor and fmod not consistent with each other


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]