EasyManua.ls Logo

Apple IIe - Page 76

Apple IIe
320 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...
76
Apple
Ile
Users
Handbook
100 X =
100-
7 * SQR(49)
In
an expression
containing
functions
as
well
as
arithmetic,
relational,
and/or
Boolean
operators,
the
function's
value
is
calculated
first. In
our
preceding
example,
the
square
root
of
49
would
be
calculated,
that
value
would
be
multiplied
by
7,
and
the
product
subtracted
from
100.
Applesoft
BASIC also
includes
a
number
of
functions
for
performing
operations
on
strings. These
include:
LEFT$
MID$
RIGHT$
These
functions
can
be
used
to
extract
one
or
more
characters
from
,a string.
The various
Applesoft
BASIC
functions
are
described
in
Chapter
4.
String Concatenation
The
addition
operator
(+)
can
be
used
to
JOln
together
or
concatenate
two
strings.
When
concatenating
strings,
re-
member
that
the
maximum
length
of
a
string
in
Applesoft
BASIC
is
255 characters.
The
following
program
illustrates
string
concatenation.
100
A$=
"JOHN"
200
B$
="BILL"
300
C$
= A$ +
B$
\
400 PRINT
C$
500 END
RUN
JOHNBILL
The
subtraction
operator
(-)
cannot
be
used
to
separate a
portion
of
a string.

Other manuals for Apple IIe

Related product manuals