| | | 6.6.1.Using the Format Flags |
|
|
Formatter uses a set of format flags to control various aspects of a conversion. |
A format flag follows the % in a format specification. |
| Flag | Effect | | - | Left justification | | # | Alternate conversion format | | 0 | Output is padded with zeros rather than spaces | | space | Positive numeric output is preceded by a space | | + | Positive numeric output is preceded by a + sign | | , | Numeric values include grouping separators | | ( | Negative numeric values are enclosed within parentheses |
|
|