Subject: [Boost-bugs] [Boost C++ Libraries] #12069: hexfloat not respected for float128
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-16 06:08:55
#12069: hexfloat not respected for float128
------------------------------------+----------------------------
Reporter: Ruslan <b7.10110111@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
Version: Boost 1.60.0 | Severity: Problem
Keywords: |
------------------------------------+----------------------------
Here's an example program:
{{{
#include <boost/multiprecision/float128.hpp>
#include <boost/version.hpp>
#include <iostream>
#include <iomanip>
template<typename Float>
void test()
{
std::cout << std::hexfloat << Float(1.3516809557473623e+236Q) << "\n";
}
int main()
{
std::cout << "boost " BOOST_LIB_VERSION << "\n";
test<double>();
test<boost::multiprecision::float128>();
}
}}}
Its output is
{{{
boost 1_60
0x1.5417c8p+784
1.351681e+236
}}}
while in both cases hexadecimal format was requested. Here second and
third lines should be identical.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12069> 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:19 UTC