Opened 6 years ago
Closed 6 years ago
#12580 closed Bugs (fixed)
cpp_bin_float: Bad rounding in corner case of subtraction
Reported by: | Michael Shatz | Owned by: | John Maddock |
---|---|---|---|
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)
Change History (2)
by , 6 years ago
Attachment: | sub_from_pow2.cpp added |
---|
comment:1 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
demonstrates incorrect rounding in corner case of subtraction