Re: [Boost-bugs] [Boost C++ Libraries] #5758: Boost.Test Floating-point comparison diagnostic output does not support radix 10

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5758: Boost.Test Floating-point comparison diagnostic output does not support radix 10
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-05 13:55:32


#5758: Boost.Test Floating-point comparison diagnostic output does not support
radix 10
--------------------------------------+-------------------------------------
  Reporter: pbristow | Owner: rogeeff
      Type: Support Requests | Status: new
 Milestone: Boost 1.48.0 | Component: test
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: floating point radix 10 decimal precision
--------------------------------------+-------------------------------------

Comment (by pbristow):

 This is also essential for the proposed Boost.Multiprecision (and probably
 proposed fixed-point).

 At 1.50

 I:/boost-
 sandbox/big_number/libs/multiprecision/test/math/test_cpp_float_loopback.cpp(66):
 error : in "cpp_loopback_test_max": check l == b failed

  [1e+2776234983093287513 != 1e+2776234983093287513]

 which is most misleading (and nonsensical)

 Patched as proposed to use max_digits10 above gives the correct (and
 sensible) display

 I:/boost-
 sandbox/big_number/libs/multiprecision/test/math/test_cpp_float_loopback.cpp(66):
 error : in "cpp_loopback_test_max": check l == b failed

 [1e+2776234983093287513 !=
 9.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999e+2776234983093287512]

 It would be very useful if this was corrected for 1.51 when
 Boost.Multiprecision will probably be included.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5758#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:09 UTC