summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/raw_convert.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raw_convert.h b/src/raw_convert.h
index 37cddbf0..fe847c90 100644
--- a/src/raw_convert.h
+++ b/src/raw_convert.h
@@ -27,11 +27,11 @@ namespace dcp {
*/
template <typename P, typename Q>
P
-raw_convert (Q v)
+raw_convert (Q v, int precision = 16)
{
std::stringstream s;
s.imbue (std::locale::classic ());
- s << std::setprecision (16);
+ s << std::setprecision (precision);
s << v;
P r;
s >> r;