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

@@ -9,12 +9,12 @@ namespace {
*/
template <typename T>
static std::string convert_with_stringstream(T v, size_t precision = 0) {
std::stringstream ss;
if (precision > 0) {
ss << std::setprecision(precision);
}
ss << v;
return ss.str();
std::stringstream ss;
if (precision > 0) {
ss << std::setprecision(precision);
}
ss << v;
return ss.str();
}
// Caution: Test involving 'convert_with_stringstream' are based on std::stringstream