projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
110dc70
)
Increase precision of raw_convert with float/double.
author
Carl Hetherington
<cth@carlh.net>
Wed, 14 May 2014 20:08:53 +0000
(21:08 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 14 May 2014 20:08:53 +0000
(21:08 +0100)
src/raw_convert.h
patch
|
blob
|
history
diff --git
a/src/raw_convert.h
b/src/raw_convert.h
index 507af15223c49e5887b10b2bfa6b7c0bdfd66c1f..7b26b0c316bfd8c61afb6984d44a998c77d78681 100644
(file)
--- 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;