Modify

Opened 8 months ago

Closed 7 months ago

#12580 closed Bugs (fixed)

cpp_bin_float: Bad rounding in corner case of subtraction

Reported by: Michael Shatz Owned by: johnmaddock
Milestone: To Be Determined Component: multiprecision
Version: Boost 1.62.0 Severity: Problem
Keywords: Cc:

Description

Subtraction produces incorrectly rounded result when a small number in range (ULP*0.5..ULP*1.0) subtracted from integer power of 2. The correct answer should be (original number - ULP), but boost returns unmodified original number.

Attachments (1)

sub_from_pow2.cpp (940 bytes) - added by Michael Shatz 8 months ago.
demonstrates incorrect rounding in corner case of subtraction

Download all attachments as: .zip

Change History (2)

Changed 8 months ago by Michael Shatz

demonstrates incorrect rounding in corner case of subtraction

comment:1 Changed 7 months ago by johnmaddock

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain johnmaddock.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.