diff --git a/src/utils.cpp b/src/utils.cpp index 0b28898..376d6ff 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -55,7 +55,7 @@ std::string Any2String(const std::any &value) { std::stringstream buf; std::string res; if (auto ptr = std::any_cast(&value)) { - buf << std::setiosflags(std::ios::fixed) << std::setprecision(15) << *ptr; + buf << std::fixed << std::setprecision(310) << *ptr; } else if (auto ptr = std::any_cast(&value)) { if (*ptr) buf << "True";