EasyManua.ls Logo

Sinclair ZX Series - Example 2 and 3 for LPRINT

Sinclair ZX Series
12 pages
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Note
You only need to change your program if you are likely to LPRINT decimal numbers which would
otherwise print incorrectly. This error is restricted to LPRINT, bot COPY and LLIST work correctly.
110 LPRINT A$
Example 2
Replace: 100 LPRINT A+B/C-D, SNI(1-Q+N)
With:
100 LET A$=STR$(A+B/C-D)
110 LET B$=STR$(SIN(1-Q+N))
120 LPRINT A$,B$
Example 3
Replace: 100 LPRINT "VOLUME="; A*B*C;" LITRES"
With: 100 LET A$=STR$(A*B*C)
110 LPRINT "VOLUME=";A$;" LITRES"

Related product manuals