[Boost-bugs] [Boost C++ Libraries] #12196: cpp_bin_float: convert_to<double> of infinity and NaN returns zero

Subject: [Boost-bugs] [Boost C++ Libraries] #12196: cpp_bin_float: convert_to<double> of infinity and NaN returns zero
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-12 19:23:36


#12196: cpp_bin_float: convert_to<double> of infinity and NaN returns zero
------------------------------+----------------------------
 Reporter: Michael Shatz | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------------
 Applying convert_to<double>() to cpp_bin_float object with values of Inf
 and/or NaN returns 0.
 That is a new bug in the latest github version.

 In Version 1.60.0 behavior is also not 100% correct, but better:
 inf.convert_to<double>() => 1.79769e+308
 nan.convert_to<double>() => nan

 Platform: Mingw, gcc 5.3.0, x64. All optimization levels.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12196>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC