Set the precision of emitting float/double to 15

This commit is contained in:
jbeder
2011-03-03 02:38:35 +00:00
parent 6f7995d27e
commit 9419d411f8

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();