28 Localization library [localization]

28.4 Standard locale categories [locale.categories]

28.4.3 The numeric category [category.numeric]

28.4.3.3 Class template num_­put [locale.nm.put]

28.4.3.3.3 Virtual functions [facet.num.put.virtuals]

Table 109: Floating-point conversions [tab:facet.num.put.fp]
State
stdio equivalent
floatfield == ios_­base​::​fixed
%f
floatfield == ios_­base​::​scientific && !uppercase
%e
floatfield == ios_­base​::​scientific
%E
floatfield == (ios_­base​::​fixed | ios_­base​::​scientific) && !uppercase
%a
floatfield == (ios_­base​::​fixed | ios_­base​::​scientific)
%A
!uppercase
%g
otherwise
%G