Increase precision of raw_convert with float/double.
authorCarl Hetherington <cth@carlh.net>
Wed, 14 May 2014 20:08:53 +0000 (21:08 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 May 2014 20:08:53 +0000 (21:08 +0100)
src/raw_convert.h

index 507af15223c49e5887b10b2bfa6b7c0bdfd66c1f..7b26b0c316bfd8c61afb6984d44a998c77d78681 100644 (file)
@@ -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;