[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-bugs
Subject:    Re: [Boost-bugs] [Boost C++ Libraries] #6627: nonfinite_num_put formatting of 0.0 is incorrect
From:       "Boost C++ Libraries" <noreply () lists ! boost ! org>
Date:       2012-02-29 16:28:16
Message-ID: 075.e3b617c823aefe7c0b9d6fe27b3c07d1 () lists ! boost ! org
[Download RAW message or body]

#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.
_______________________________________________
Boost-bugs mailing list
Boost-bugs@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-bugs

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic