| 411 | // Converts a float value to a string via a FloatProxy. |
| 412 | template <typename T> |
| 413 | std::string EncodeViaFloatProxy(const T& value) { |
| 414 | std::stringstream ss; |
| 415 | ss << value; |
| 416 | return ss.str(); |
| 417 | } |
| 418 | |
| 419 | // Converts a floating point string so that the exponent prefix |
| 420 | // is 'e', and the exponent value does not have leading zeros. |