Appendix F
Formats
F.1 Formatted Printing
The following table shows the specifiers that can be used in format strings for the built-ins writef, printf, and to_fstring.
| Specifier | Output |
| %% | Percent Sign |
| %c | Character |
| %d | Signed Decimal Integer |
| %e | Scientific Notation, with Lowercase e |
| %E | Scientific Notation, with Uppercase E |
| %f | Decimal Real Number |
| %g | Shorter of %e and %f |
| %G | Shorter of %E and %f |
| %i | Signed Decimal Integer |
| %n | Platform-independent Newline |
| %o | Unsigned Octal Integer |
| %s | String |
| %u | Unsigned Decimal Integer |
| %w | Term |
| %x | Unsigned Lowercase Hexadecimal Integer |
| %X | Unsigned Uppercase Hexadecimal Integer |