Re: [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: Re: [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-11 10:07:29


#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
Resolution: | Keywords:
-------------------------------+----------------------------

Comment (by Michael Shatz):

 Your posting engine changed my post above in unexpected way.
 I think, it would be beneficiary for non-sophisticated people like me, if
 by default you engine will have WikiFormatting turned off. An option to
 turn it on can be provided for those of us who know what they are doing.

 I meant to post:

 Applying convert_to<double>() to cpp_bin_float object with absolute values
 in range (0..2!**(INT_MIN+52)] returns infinity.[[BR]]
 Similar bug exists with convert_to<float>().[[BR]]
 Due to limits on exponent of cpp_bin_float the bug can be seen only when
 class Exponent = int64_t or wider.

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