mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Set the precision of emitting float/double to 15
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user