Boost C++ Libraries: Ticket #12198: cpp_bin_float addition/subtraction produces wrong result when the difference of exponents of arguments overflows https://svn.boost.org/trac10/ticket/12198 <p> If the difference of exponents of two cpp_bin_float does not fit in specified exponent_type then addition and subtraction operations return the operand with smaller exponent instead of operand with bigger exponent. </p> <p> Platform: Mingw, gcc 5.3.0, x64. All optimization levels. Library version: both 1.60.0 and the newest files from github </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12198 Trac 1.4.3 Michael Shatz Thu, 12 May 2016 21:17:36 GMT attachment set https://svn.boost.org/trac10/ticket/12198 https://svn.boost.org/trac10/ticket/12198 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">add_test.cpp</span> </li> </ul> <p> demonstrates cpp_bin_float addition bug </p> Ticket John Maddock Sun, 15 May 2016 18:02:28 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12198#comment:1 https://svn.boost.org/trac10/ticket/12198#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/6a16ac95c5c9370771bc42e1aecfb781d9a49f04"><span class="icon">​</span>https://github.com/boostorg/multiprecision/commit/6a16ac95c5c9370771bc42e1aecfb781d9a49f04</a> </p> Ticket