*/
+#ifndef LIBDCP_RAW_CONVERT_H
+#define LIBDCP_RAW_CONVERT_H
+
#include <sstream>
#include <iomanip>
*/
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;
}
};
+
+#endif