Appendix
H
BASIC
Functions 375
Format:
LEFT$(arg$,byte)
byte
specifies the number
of
leftmost characters to be extracted from
the
arg$ character string.
Example:
?LEFTI(OIARO
OI
,2)
Prints
AR
A$"LEFT$(B.,
10)
Prints leftmost ten characters
of
the string
B$
LEN
LEN returns the length
of
the string argument.
Format:
LEN(arg$)
LEN returns a number
that
is
the count
of
characters in the specified
string.
Example:
?LEH(OIABCDEF
OI
)
Displays 6
H=LEH(CS+D')
Displays the sum of characters
in
strings
C$
and D$
LOG
LOG returns the natural logarithm,
or
log, to the base
e.
The value
of
e
used
is
2.71828183.
Format:
LOG(argn)
An ILLEGAL QUANTITY
ERROR
message
is
returned if the argu-
ment
is
zero
or
negative.
Example:
?LOG(l)
A"LOO(10)
A-LOG<1E6)
Aa:LOG
00
ILOO
(
10)
Prints 0
Results in A=2.30258509
Results in A=13.8155106
Calculates log to the base
10