3 ms·
> It seems that there is no way to configure the printing of floating point values to automatically maintain exact number of decimal digits needed to accurately
by jbandela1 3y ago
> It seems that there is no way to configure the printing of floating point values to automatically maintain exact number of decimal digits needed to accurately represent the value.
C++17 has to_ chars/from_chars and c++20 has std::format which will output the shortest output the shortest output required to round trip the floating point value exactly.