home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / C64-128Toolkit / PRINT.USING.DOC < prev    next >
Encoding:
Text File  |  2019-04-13  |  896 b   |  18 lines

  1. Information about print.using
  2.  
  3. Print.using is a subroutine for BASIC programs.  Using this
  4. subroutine, you can print out numbers with a specified number of
  5. positions before and after the decimal point.  This is useful
  6. for programs that print columns of numbers, or where only a
  7. certain number of decimal places are meaningful (for example, in
  8. financial programs, typically only two decimal places are
  9. meaningful).
  10.  
  11. Lines 50000 and up are the actual subroutine.  The
  12. lower-numbered lines are a sample program showing how to call
  13. the subroutine in a BASIC program.  You have to set three
  14. variables (V, V1, and V2), call the subroutine (gosub 50000) and
  15. then print V$; .  Set V to the actual number to be printed out,
  16. V1 to the number of places to the left of the decimal point, and
  17. V2 to the number of places to the right of the decimal point.
  18.