Set the precision of emitting float/double to 15

This commit is contained in:
Jesse Beder
2011-03-03 02:38:35 +00:00
parent ca5992b971
commit 9128d841f5

View File

@@ -116,6 +116,7 @@ namespace YAML
EmitSeparationIfNecessary(); EmitSeparationIfNecessary();
std::stringstream str; std::stringstream str;
str.precision(15);
str << value; str << value;
m_stream << str.str(); m_stream << str.str();