
7 Aug
2013
7 Aug
'13
7:19 p.m.
John Maddock wrote:
The current default situation is to print just 5 digits, and that certainly doesn't get close!
Hmmm - that surprises me. I look at the code in the file basic_text_oprimitive.hpp and I find: void save(const float t) { // must be a user mistake - can't serialize un-initialized data if(os.fail()) boost::serialization::throw_exception( archive_exception(archive_exception::output_stream_error) ); os << std::setprecision(std::numeric_limits<float>::digits10 + 2); os << t; } Is this code not correct? Note that I added in 2 extra digits. Or is this code not getting invoked? Let me know. Robert Ramey