Commit 284fffc4 authored by Alexander Lapshin's avatar Alexander Lapshin

.

parent 1f8239bf
......@@ -54,9 +54,13 @@ void hangle_to_chars_error(const std::to_chars_result& res, const T& arg)
static std::string ToStr(const double value, const int precision = 0)
{
std::ostringstream ss;
if (precision) {
ss << std::setprecision(precision);
}else {
ss << std::setprecision(std::numeric_limits<double>::digits10 + 2);
}
ss << value;
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