EasyManuals Logo

IBM 5100 Basic Reference Manual

IBM 5100
187 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
Page #57 background imageLoading...
Page #57 background image
(
(
(
(-
Arithmetic Hierarchy
Arithmetic expressions are evaluated according
to
the hierarchy
of
the
operators
involved. Operations enclosed
in
parentheses are performed first. Operations with
a higher priority level are performed before those with a lower priority level. Oper-
ations at
the
same priority level are performed from left
to
right.
The
hierarchy
of
the
operators are:
Operator
Hierarchy
1.
Enclosed
in
parentheses
Highest
2.
tor
**
3. Positive + and Negative -
4.
* and /
5.
Addition + and Subtraction -
Lowest
An
expression
is
evaluated by being reduced
to
its
component
subexpressions. A
subexpression
is
defined
as
a group
that
can be read operand-opera tor-operand, where
an operand
is
one
of
the
following:
A simple reference
to
data (constant
or
variable)
A subscripted array reference
A function reference
A parenthesized subexpression
Starting with
the
first operator
to
be executed according
to
the
hierarchy,
the
operands
of
its subexpression are reduced
to
simple references
to
data
in
aleft-to-right
order.
This process
is
repeated
as
many times
as
required
in
a left-to-right
order
or in a
decreasing
order
of
priority,
or
both,
of
the
remaining operators until
the
entire
expression
is
reduced
to
a simple reference
to
the
evaluated result.
53

Table of Contents

Other manuals for IBM 5100

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM 5100 and is the answer not in the manual?

IBM 5100 Specifications

General IconGeneral
Release Year1975
RAM16 KB - 64 KB
Storage204 KB tape drive
Display5-inch CRT
Operating SystemAPL/BASIC
ProcessorIBM PALM (1.9 MHz)

Related product manuals