lmayer@elgin.edu

Week 7

PRINT USING more useful in controlling the format of the output

  • force decimal point alignment
  • control the number of digits
  • insert commas into a number
  • show sign status (+ or -)
  • affix a $ sign
  • display result in exponential form
  • left or right justify string values
  • specify that only the first character of a string be displayed
  • round automatically

The # sign is the format symbol used to define a numeric descriptor (how many digits)
See table 5.8 on page 132 for other format symbols.

Data is right-justified (unless & used) with blanks filling in the spaces
Numbers are rounded to integers if only an integer is specified
If number is too large for number of digits specified, it is preceded by a %

LPRINT USING like PRINT USING only output goes to printer

LOCATE statement is used to position the cursor on the screen
LOCATE row, column, cursor  (cursor = 0 invisible, cursor = 1 visible)