Boost C++ Libraries: Ticket #12209: cpp_bin_float: Subtraction of negative infinity from negative number produces negative infinity https://svn.boost.org/trac10/ticket/12209 <p> cpp_bin_float: subtraction of negative infinity from negative number produces negative infinity instead of positive infinity. </p> <p> Platform: Mingw, gcc 5.3.0, x64. All optimization levels. Library version: newest files from github 1.60.0 also produces wrong result, but there it is nan rather than -inf </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12209 Trac 1.4.3 Michael Shatz Mon, 16 May 2016 23:08:35 GMT attachment set https://svn.boost.org/trac10/ticket/12209 https://svn.boost.org/trac10/ticket/12209 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">inf_test.cpp</span> </li> </ul> <p> cpp_bin_float: -42 - -inf =&gt; -inf </p> Ticket John Maddock Sun, 05 Jun 2016 19:00:56 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/12209#comment:1 https://svn.boost.org/trac10/ticket/12209#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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.62.0</span> </li> </ul> <p> Many thanks for catching these! </p> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/multiprecision/commit/aaeb4d737eea9058d3daeab0f0fc10974fe0970f"><span class="icon">​</span>https://github.com/boostorg/multiprecision/commit/aaeb4d737eea9058d3daeab0f0fc10974fe0970f</a> </p> Ticket