Radio Shack TRS-80 PC-3 Owner's Manual page 140

Table of Contents

Advertisement

Examples
1('
INPUT "CONTINUE?"; A$
20 IF A$
=
"YES" THEN GOTO 10
30 IF A$
=
"NO" THEN GOTO 60
40 PRINT "YES OR NO, PLEASE"
50 GOTO 10
60 END
This program continues to ask 'CONTINUE?' as long as 'YES' is entered; it stops if
'NO' is entered, and complains otherwise.
Note:
This unit is capable of calculation for a mantissa of up to 12 digits. To increase accuracy, however, the mantissa is calculated in-
side the unit up to 12 digits, the result of which is rounded to the 10th digit for display. For example, 5/9 and 5/9
*
9 are
calculated as follows:
5/9
--+
5.55555555555E-01
L
This is rounded to the 10th digit.
Display
--+
5.555555556E-01
5/9
*
9
--+
4.99999999999E00
L
Th is is rounded to the 10th digit.
Display
--+
5.
Thus, calculations are carried out for mantissas of up to 12 digits. This may cause a difference in the results of calculations when
performed in succession and independently.
140

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents