http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53319

             Bug #: 53319
           Summary: exact subtract of two decimal floating-point values
                    raises FE_INEXACT
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: tyde...@tybor.com


Code similar to
  _Decimal64 res1, val = 0.9999999999999999DD /* 16 9s */
  res1 = val;
  res1 = res1 - val;  /* exactly zero */
raises FE_INEXACT when in fact the result is an exact zero.

Reply via email to