summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-14 21:08:53 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-14 21:08:53 +0100
commite9ce9b6d2371e518cee254a66d967becc7dd6f85 (patch)
tree8fe0a41267e715d0ec01eb6502c3449f6cb3e7f5
parent110dc70856bd0f6ae5ec1931f51a4817c5e38f42 (diff)
Increase precision of raw_convert with float/double.
-rw-r--r--src/raw_convert.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raw_convert.h b/src/raw_convert.h
index 507af152..7b26b0c3 100644
--- a/src/raw_convert.h
+++ b/src/raw_convert.h
@@ -18,6 +18,7 @@
*/
#include <sstream>
+#include <iomanip>
namespace libdcp {
@@ -30,6 +31,7 @@ raw_convert (Q v)
{
std::stringstream s;
s.imbue (std::locale::classic ());
+ s << std::setprecision (16);
s << v;
P r;
s >> r;