From 9419d411f86897b7cb3e7ff9b320dc04d59fd3a0 Mon Sep 17 00:00:00 2001 From: jbeder Date: Thu, 3 Mar 2011 02:38:35 +0000 Subject: [PATCH] Set the precision of emitting float/double to 15 --- include/yaml-cpp/emitter.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/yaml-cpp/emitter.h b/include/yaml-cpp/emitter.h index f7ec3e1..bc3a31c 100644 --- a/include/yaml-cpp/emitter.h +++ b/include/yaml-cpp/emitter.h @@ -116,6 +116,7 @@ namespace YAML EmitSeparationIfNecessary(); std::stringstream str; + str.precision(15); str << value; m_stream << str.str();