EasyManua.ls Logo

Apple IIe - Page 52

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...
52
Apple
lie
Us
ers
Handbook
A$
ZIP$
A7$
NED$
MOP$
N222$
A
distinction
can also be made
among
numeric
variable names
between
floating
point
variable names and
integer
variable
names.
In
the
following
example,
A1
is
used
to
represent a
floating
point
number,
while
A% represents
an
integer.
100A1=1.75
:A% =
A1
* 2
200
PRINT
A1
, A%
RUN
1.75 3
Notice
that
only
the
integer
value
of
A%
is
output
. The
decimal
portion
is
dropped
or
truncated
as
A% can
only
accept
integer
valu
es.
Keep in
mind
that
although
Applesoft
allows variable names
of
up
to
255
characters,
only
the
first 2
alphanumeric
characters are
recognized
by
the
interpreter.
In
other
words
,
the
following
variable names
would
be
identified
as
being
identical
by
the
Applesoft
interpreter
.
TELLER
TENNIS
TENNESSEE
However
,
the
special symbols
which
identify
the
variable
type
(i.e.$,%)
differentiate
among
variables
with
identical 2 character
names. The
following
variable names
would
all
be
identified
as
unique
by
the
Applesoft
interpreter.
TABLES
&
ARRAYS
TE%
TE
TE$
Earlier in this
chapter,
we
introduced
the
concept
of
variables. A
variable
is
designed
to
hold
a single data
item--either
string
or

Other manuals for Apple IIe

Related product manuals