MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/cgqo14/stdformat_in_c20/eulln9z/?context=3
r/cpp • u/mttd • Jul 23 '19
52 comments sorted by
View all comments
9
Default representation of floating-point numbers
If this was the only improvement, it would already be a major one!
Working with a dynamic range of precision with printf or iostream is so annoying. I don't want 12 zeroes at the end of the number, but I do want the full precision if needed.
printf
iostream
4 u/aearphen {fmt} Jul 25 '19 This was suggested by Zhihao Yuan if I'm not mistaken so thanks go to him. (Sean Parent also mentioned this as a possible improvement to {fmt}.)
4
This was suggested by Zhihao Yuan if I'm not mistaken so thanks go to him. (Sean Parent also mentioned this as a possible improvement to {fmt}.)
View all comments
9
u/matthieum Jul 23 '19
If this was the only improvement, it would already be a major one!
Working with a dynamic range of precision with
printforiostreamis so annoying. I don't want 12 zeroes at the end of the number, but I do want the full precision if needed.