Boost C++ Libraries: Ticket #12580: cpp_bin_float: Bad rounding in corner case of subtraction https://svn.boost.org/trac10/ticket/12580 <p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12580 Trac 1.4.3 Michael Shatz Fri, 04 Nov 2016 00:43:28 GMT attachment set https://svn.boost.org/trac10/ticket/12580 https://svn.boost.org/trac10/ticket/12580 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">sub_from_pow2.cpp</span> </li> </ul> <p> demonstrates incorrect rounding in corner case of subtraction </p> Ticket John Maddock Fri, 18 Nov 2016 13:04:34 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12580#comment:1 https://svn.boost.org/trac10/ticket/12580#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/multiprecision/commit/618ef476119f2322d9725d883bf7b93f28a6da26"><span class="icon">​</span>https://github.com/boostorg/multiprecision/commit/618ef476119f2322d9725d883bf7b93f28a6da26</a>, thanks! </p> Ticket