[Boost-bugs] [Boost C++ Libraries] #12512: cpp_bin_float: convert_to<double> for numbers with absolute values smaller than 2**(INT_MIN+52) returns infinity instead of 0.

Subject: [Boost-bugs] [Boost C++ Libraries] #12512: cpp_bin_float: convert_to<double> for numbers with absolute values smaller than 2**(INT_MIN+52) returns infinity instead of 0.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-10 19:51:00


#12512: cpp_bin_float: convert_to<double> for numbers with absolute values smaller
than 2**(INT_MIN+52) returns infinity instead of 0.
------------------------------+----------------------------
 Reporter: Michael Shatz | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
  Version: Boost 1.62.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------------
 Applying convert_to<double>() to cpp_bin_float object with absolute values
 in range (0..2**(INT_MIN+52)] returns infinity.
 Similar bug exists with convert_to<double>().
 Due to limits on exponent of cpp_bin_float the bug can be seen only when
 class Exponent = int64_t or wider.

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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12512>
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