[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. |