Vector Basic Interpreter Basic 80 Reference Manual - page 118
of
190
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