Commit f4bca79d by Simon Gene Gottlieb Committed by Jesse Beder

fix: fp_to_string uses now 2 spaces

parent d4e00bd4
......@@ -197,8 +197,8 @@ inline auto FpToString(double v, size_t precision = 0) -> std::string {
*/
inline auto FpToString(long double v, size_t precision = std::numeric_limits<long double>::max_digits10) -> std::string {
std::stringstream ss;
ss.precision(precision);
ss.imbue(std::locale("C"));
ss.precision(precision);
ss << v;
return ss.str();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment