8 Oct
2025
8 Oct
'25
4:28 p.m.
Matt Borland wrote:
Also, it seems that round-tripping sometimes fails with the current implementation; `std::println("{}", "0.99999999"_DD);` outputs `1` instead of `0.99999999`.
The format "{}" is general format with 6 digits of precision, so 1 would be correct. I'll update the docs accordingly.
That's not what {} does by convention. It should output shortest roundtrip.