Intel 9800758-02 Webcam User Manual


 
Functions
7-8
LEN
The string function LEN(X$) returns the length, in number
of
characters,
of
string
X$. All characters are counted, including non-printing characters
and
blanks.
LEN (string
expression)
10
X$
=
"JOHN
J.
JONES"
20
PRINT LEN(X$)
30
END
RUN
13
Ok
LOC
The LOC function has two uses. When used with a random file, LOC returns the
current sector number. The current sector is defined as the last sector
that
was read
or
written.
If
no sectors have been read
or
written, LOC returns to
O.
When used
with a sequential file,
LOC returns the number
of
sectors read or written to since the
last
OPEN
statement was executed
on
that
file.
LOC (file number)
10
OPEN
"R",
#3,
:F1
:RANDOM
20
GET #3,44
30
PRINT LOC
(3)
40
END
RUN
44
Ok
LOF
The
LOF
function returns the number
of
sectors in a random file. When LOF
is
used
with a sequential file, it returns the number
of
data sectors
(128
bytes per sector) in
the file.
LOF (file
number)
PRINT LOF(4)
33
LOG
The LOG function returns the natural logarithm
of
the argument. The calculation
is
performed in single precision.
LOG(expression)
10
INPUT A
20
B =
LOG
(A)
30
PRINT A
40
END
RUN
?
2488
7.81924
Ok
BASIC-80