From 8186058a7f636f4e9114b33a0792b6a072b683e8 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();