| 129 | } |
| 130 | |
| 131 | fc::string to_string(double d) |
| 132 | { |
| 133 | // +2 is required to ensure that the double is rounded correctly when read back in. http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html |
| 134 | std::stringstream ss; |
| 135 | ss << std::setprecision(std::numeric_limits<double>::digits10 + 2) << std::fixed << d; |
| 136 | return ss.str(); |
| 137 | } |
| 138 | |
| 139 | fc::string to_string( uint64_t d) |
| 140 | { |
no test coverage detected