Change %g format specifier to %.*g with full double precision
Sometimes we need more decimal digits of precision when converting double values to ASCII than what is afforded by %g, so use %.*g with std::numeric_limits<double>::max_digits10 to specify the precision.
Showing
Please register or sign in to comment