Modify

Ticket #12580 (closed Bugs: fixed)

Opened 6 months ago

Last modified 5 months ago

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

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

Change History

Changed 6 months ago by Michael Shatz

demonstrates incorrect rounding in corner case of subtraction

comment:1 Changed 5 months ago by johnmaddock

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

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.