EasyManua.ls Logo

Commodore 128D - Page 328

Commodore 128D
427 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
]
!
»*
}
LEFTS
—Return
the
leftmost
characters
of string
LEFTS
(string,integer)
This
function
returns
a
string
comprised
of
the
number
of
leftmost
characters
of
the
string
determined
by
the
specified
integer.
The
integer
argument
must be
in
the
range
0
to
255.
If
the
integer
is
greater
than
the
length
of
the
string,
the
entire
string
is
returned.
If
an
integer
value
of
zero
is
used,
then
a
null
string
(of
zero
length)
is
returned.
EXAMPLE:
PRINT
LEFTS
("C0MM0D0RE",5>
COMMO
LEN
—Return
the
length
of
a
string
LEN
(string)
This
function
returns
the
number
of
characters
in
the
string
expres
sion.
Non-printed
characters
and
blanks
are
included.
EXAMPLE:
PRINT
LEN
("COMMODORE128")
12
LOG
—Return
natural
log
of
X
LOQ(X)
This
function
returns
the
natural
log
of
X.
The
natural
log
is
log
to
the
base
e
(see
EXP(X)).
To
convert
to
log
base
10,
divide
by
LOG(10).
EXAMPLE:
PRINT
LOG
(37/5)
2.00148
MID$
—Return
a
substring
from
a
larger
string
MID$
(string,starting
position[,length])
This
function
returns
a
substring
specified
by
the
LENGTH,
starting
at
the
character
specified
by
the
starting
position.
The
starting
posi
tion
of
the
substring
defines
the
first
character
where
the
substring
begins.
The
length
of
the
substring
is
specified
by
the
length
argue-
ment.
If
the
starting
position
value
(range
1
-255)
is
greater
than
the
320
BASIC
7.0
ENCYCLOPEDIA-Basic
Functions

Table of Contents

Other manuals for Commodore 128D

Related product manuals