Bug 15480 - remainder raises inexact exception
Summary: remainder raises inexact exception
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: math (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-16 20:56 UTC by Joseph Myers
Modified: 2014-06-13 17:45 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Myers 2013-05-16 20:56:01 UTC
On x86_64, the double version of the remainder function raises the inexact exception in cases such as remainder (3.0, 2.0).  This function's result is always exact; it should not raise the inexact exception.
Comment 1 Joseph Myers 2013-05-17 19:05:04 UTC
Fixed for 2.18 by:

commit bb38759d6dc78b1818f5d23129a362d6f5aba267
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri May 17 19:04:08 2013 +0000

    Fix remainder exceptions and directed-rounding results (bugs 15480, 15485).