
CVI«2-byte
string»
CVS«4-byte
string»
CVD«S-byte
string»
Disk
Convert
string
values
to
numeric
values.
Numeric
values
that
are read in from a random
disk file must be converted
from
strings
back
into
numbers.
CVI converts a 2-byte string to
an integer.
CVS converts a 4-byte string
to
a
single precision number.
CVD converts an S-byte
string to a double precision number •
•
70 FIELD #1,4 AS N$, 12 AS B$, •••
SO GET
#1
90 Y=CVS(N$)
See also MKI$,
MKS$,
MKD$,
Section
3.25
and
Appendix B.
Returns -1
(true) if the
end
of
a
sequential
file
has
been
reached.
Use
EOF to test for
end-of-file while
INPUTting,
to
avoid
"Input·
past end" errors.
10 OPEN "I",1,"DATA"
20
C=O
30 IF EOF(1)
THEN
100
40
INPUT
if
1 ,M (C)
50 C=C+1:GOTO 30
Содержание Basic Interpreter Basic 80
Страница 1: ...5IA iC intc tit tcl c t ...
Страница 2: ......
Страница 6: ... ...
Страница 10: ......
Страница 26: ......
Страница 33: ...2 5 Intentially left blank ...
Страница 37: ...BASIC SO COMMANDS AND STATEMENTS 2 9 Intentially left blank ...
Страница 40: ...410 DEF FNAB X Y XA3 YA2 420 T FNAB I J Line 410 de ines the function function is called in line 420 ...
Страница 112: ......
Страница 136: ......
Страница 140: ......
Страница 160: ......
Страница 165: ......
Страница 166: ......
Страница 174: ......
Страница 176: ......
Страница 182: ......
Страница 184: ......
Страница 190: ......