Output format |
|
A percent(%) symbol. | |
Single-byte character. | |
|
Decimal integer. |
|
Decimal integer. |
|
Octal integer. |
|
Decimal integer. |
|
Hexadecimal integer, using “abcdef”. |
|
Hexadecimal integer, using “ABCDEF”. |
|
Signed value having the form [ – ]d.dddd e [sign]ddd, where d is a single decimal digit, is one or more decimal digits, ddd is exactly three decimal digits, and sign is + or –. |
|
Identical to the exponent format except that E rather than e introduces the exponent. |
|
Signed value having the form [ – ]dddd.dddd, where dddd is one or more decimal digits. The number of digits before the decimal point depends on the magnitude of the number, and the number of digits after the decimal point depends on the requested precision. |
|
Signed value printed in f or e format. The e format is used only when the exponent of the value is less than –4 or greater than or equal to the precision argument. Trailing zeros are truncated, and the decimal point appears only if one or more digits follow it. |
|
Identical to the g format, except that E, rather than e, introduces the exponent (where appropriate). |
|
Specifies a single-byte character string. |