From e9ce9b6d2371e518cee254a66d967becc7dd6f85 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 14 May 2014 21:08:53 +0100 Subject: Increase precision of raw_convert with float/double. --- src/raw_convert.h | 2 ++ 1 file changed, 2 insertions(+) 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 +#include 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; -- cgit v1.2.3