diff --git a/src/string.cpp b/src/string.cpp index 2d37388..6499494 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -6,6 +6,8 @@ #include #include +#include +#include #include /** @@ -103,7 +105,9 @@ namespace fc { fc::string to_string( double d) { - return boost::lexical_cast(d); + std::stringstream ss; + ss << std::setprecision(12) << std::fixed << d; + return ss.str(); //boost::lexical_cast(d); } fc::string to_string( uint64_t d)