C++20 String Formatting: Part-4 Number type formatting

Gajendra Gulgulia
7 min readMar 10, 2023

In the third part of the series we looked at how to format signs of numbers with the string formatting library. In the fourth part of the series, we’ll look at Type format specifier that applies to numeric as well as some fundamental non-numeric arguments. Further we’ll also look at how the optional specifier 0 and # change the formatted output of the arguments.

--

--