Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Format Strings

...

Note
For Date Format String see this topic : DateTime Format Strings

Format strings specify required formats to general-purpose formatting routines. Format strings passed to the string formatting routines contain two types of objects--literal characters and format specifiers. Literal characters are copied word for word to the resulting string. Format specifiers fetch arguments from the argument list and apply the formatting to them.

...

Index, width, and precision specifiers can be specified directly, using a decimal digit string (for example "%10d"). Note that width Width is an integer value, while precision is an unsigned integer value. For example,

...