[tab:format.type.float] (original) (raw)

28 Text processing library [text]

28.5 Formatting [format]

28.5.2 Format string [format.string]

28.5.2.2 Standard format specifiers [format.string.std]

Table 108 β€” Meaning of type options for floating-point types [tab:format.type.float]

πŸ”—Type Meaning
πŸ”—a If precision is specified, equivalent toto_chars(first, last, value, chars_format::hex, precision) where precision is the specified formatting precision; equivalent toto_chars(first, last, value, chars_format::hex) otherwise.
πŸ”—A The same as a, except that it uses uppercase letters for digits above 9 andP to indicate the exponent.
πŸ”—e Equivalent toto_chars(first, last, value, chars_format::scientific, precision) where precision is the specified formatting precision, or 6 if precision is not specified.
πŸ”—E The same as e, except that it uses E to indicate exponent.
πŸ”—f, F Equivalent toto_chars(first, last, value, chars_format::fixed, precision) where precision is the specified formatting precision, or 6 if precision is not specified.
πŸ”—g Equivalent toto_chars(first, last, value, chars_format::general, precision) where precision is the specified formatting precision, or 6 if precision is not specified.
πŸ”—G The same as g, except that it uses E to indicate exponent.
πŸ”—none If precision is specified, equivalent toto_chars(first, last, value, chars_format::general, precision) where precision is the specified formatting precision; equivalent toto_chars(first, last, value) otherwise.