PRINT.USING.DOC

(0 KB) Pobierz
Information about print.using

Print.using is a subroutine for BASIC programs.  Using this
subroutine, you can print out numbers with a specified number of
positions before and after the decimal point.  This is useful
for programs that print columns of numbers, or where only a
certain number of decimal places are meaningful (for example, in
financial programs, typically only two decimal places are
meaningful).

Lines 50000 and up are the actual subroutine.  The
lower-numbered lines are a sample program showing how to call
the subroutine in a BASIC program.  You have to set three
variables (V, V1, and V2), call the subroutine (gosub 50000) and
then print V$; .  Set V to the actual number to be printed out,
V1 to the number of places to the left of the decimal point, and
V2 to the number of places to the right of the decimal point.
Zgłoś jeśli naruszono regulamin