Formatting

In this section we cover aspects of string formatting; i.e. capitalization, line wrapping, and alignment.

In particular, this section is organized as follows:

  • Case where we cover how to set the case of a string e.g. to lower case, or to upper case.
  • Wrapping where we cover how to format a string as a paragraph with a certain line width; i.e. inserts newline characters at a given line width.
  • Alignment where we cover how to align text to the left, right, or center within a given width specified as a number of characters.
  • Number where we cover how to format the string representations of numbers in a certain way typically for display purposes; e.g. add commas after each three digits of large numbers.
R
I/O