EasyManua.ls Logo

IBM 5100

IBM 5100
228 pages
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...
Chapter 3. Data
30
VARIABLES
You
can store
data
in
the
5100
by
assigning it
to
a variable name. These
stored
items are called variables. Whenever
the
variable name
is
used, APL supplies
the
data
associated with
that
name. A variable
name
can be
up
to
77
characters in
length with no blanks;
the
first
character
must be
alphabetic
and
the
remaining
characters can be
any
combination
of
alphabetic
and numeric characters. Variable
names longer
than
77
characters can
be
used,
but
only
the
first
77
characters are
significant
to
APL.
The
+-
(assignment arrow)
is
used
to
assign
data
to
a variable:
LENGTHi··6
WIDTl-lfo8
AREA~LENGTHxWIDTH
To
display
the
value
of
a variable,
enter
just
the
variable name:
LENGTH
6
WIDTH
8
I~I~EA
4B
DATA
REPRESENTATION
Numbers
The
decimal digits 0
through
9
and
the
decimal
point
are used
in
the
usual way.
The
character
- , called
the
negative sign,
is
used
to
denote
negative numbers. It appears
as
the
leftmost
character
in
the
representation
of
any
number
whose value
is
less
than
zero:
O-lJ.
The
negative sign,
-,
is
distinct
from
- (the symbol used
to
denote
subtraction)
and
can
be
used
only
as
part
of
the
numeric
constant.

Table of Contents

Other manuals for IBM 5100

Related product manuals