advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Character Formats (PRINT)
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Character Formats (PRINT)
 
 ■ The following characters are used to format a numeric expression:
 
   Character   Description
   ═════════   ═════════════════════════════════════════════════════════════
   .           Decimal point position
   ,           Placed left of decimal point; prints comma every third digit
   +           Position of the number's sign
   ^^^^        Prints the number in exponential format
               Prints trailing sign for negative numbers only
   $$          Prints leading $
   **          Fills leading spaces with *
   **$         Combines ** and $
 
 ■ The following characters are used to format a string expression:
 
   Character   Description
   ═════════   ═════════════════════════════════════════════════════════════
   &           Prints entire string
   !           Prints only the first character of the string
   \n\         Prints first 'n'  characters, where n is the number of
               blanks between slashes + 2
 
 ■ The following characters are used to print literal characters from
   formatstring$:
 
   Character   Description
   ═════════   ═════════════════════════════════════════════════════════════
   _           Prints the formatting character that follows as a literal
 
 ■ All other characters are printed as literals.
 
 See: PRINT Statement  PRINT # Statement