Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6627: nonfinite_num_put formatting of 0.0 is incorrect
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-29 16:28:16
#6627: nonfinite_num_put formatting of 0.0 is incorrect
------------------------------------------+---------------------------------
Reporter: krwalker@⦠| Owner: pbristow
Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------+---------------------------------
Comment (by pbristow):
Well this looks a bit more complicated than I feared. There seems to be a
difference between sending to cout (00000) and a stringstream (00.00).
{{{
cout << std::fixed << std::setw( 5 ) << std::setfill( '0' ) <<
std::setprecision( 2 ) << 0.0 << endl; // 00000
std::stringstream astream;
astream << std::fixed << std::setw( 5 ) << std::setfill( '0' ) <<
std::setprecision( 2 ) << 0.0; // 00.00
}}}
which leaves me more than a bit wary of making any precipitate changes to
Johan Rade's nonfinite_num_put code :-( (Before fools step in where
angels fear to tread? - again!)
I'd like you to consider if it might be safer to circumnavigate this
'feature'?
Paul
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6627#comment:3> 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