fix: fp_to_string uses now 2 spaces

This commit is contained in:
Simon Gene Gottlieb
2024-07-16 13:39:43 +02:00
committed by Jesse Beder
parent d4e00bd473
commit f4bca79dc4
2 changed files with 144 additions and 144 deletions

View File

@@ -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();
}