Format Specifiers
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Characters that format a numeric expression
# Digit position. ║ - Placed after digit, prints
. Decimal point position. ║ trailing sign for negative
, Placed left of the decimal point, ║ numbers.
prints a comma every third digit. ║ $$ Prints leading $.
+ Position of number sign. ║ ** Fills leading spaces with *.
^^^^ Prints in exponential format. ║ **$ Combines ** and $$.
Characters used to format a string expression
& Prints entire string. ║ \ \ Prints first n characters,
! Prints only the first character ║ where n is the number of
of the string. ║ blanks between slashes + 2.
Characters used to print literal characters
_ Prints the following formatting ║ Any character not in this
character as a literal. ║ table is printed as a
║ literal.