EasyManua.ls Logo

Sharp PC-1403 - APPENDIX D EXPRESSION EVALUATION AND OPERATOR PRIORITY; Operator Priority Levels

Sharp PC-1403
252 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...
203
W
he
n
t
h
e
r
e are
tw
o or more
ope
r
a
tors at the sa
m
e
p
r
iority
l
eve
l
,
t
h
e
e
x
p
ressio
n
will be
eva
lu
a
t
ed
fro
m
l
eft
t
o
righ
t.
(T
h
e
expo
n
e
nt
ia
tion will be
eva
lu
ated
fro
m
ri
gh
t to
l
eft.)
Note
t
h
a
t
w
i
t
h
A
+
B
-
C
,
for
e
x
am
p
le, the
a
n
s
wer
is
the
sa
m
e
w
h
ether the
add
i
t
i
on
o
r
th
e
s
ub
t
r
act
ion is done first.
W
he
n
a
n
expr
es
s
io
n
c
o
n
t
ains
mu
lti
p
l
e
n
es
t
ed
pa
r
en
t
h
eses
,
t
he
i
nn
ermos
t
se
t
is
ev
al
u
at
ed
f
ir
st
a
nd
ev
alu
a
ti
on the
n
pr
oc
eed
s
o
u
twar
d.
Opera
ti
on
P
a
r
e
n
theses
V
a
r
iab
l
es and Pseudova
r
iab
l
es
Fu
n
ctions
E
x
ponentiation
(,...
)
,
(
ROT
)
U
nary minus, negative
si
g
n
(
-
)
Mul
t
i
p
lication
a
nd d
i
v
i
si
on (*,
/)
A
ddition
a
nd
subtract
i
on
(
+
,
-
)
R
e
l
atio
nal
oper
a
t
o
rs(
<
,
<=,
=
,
<>,
>
=
,
>
)
L
ogica
l
o
p
era
t
ors
(A
N
D,
OR
,
NO
T
,
X
O
R
)
Leve
l
1
2
3
4
5
6
7
8
9
O
p
e
rators on
BAS
I
C
m
ode cf
th
e SHARP
COMP
UTER are
ev
a
luated
w
i
t
h
the followin
g
p
ri
oritie
s
f
ro
m
h
i
g
h
es
t to
l
o
w
est:
OperatorPrtority
Since
th
e COMPU
T
ER
m
u
s
t have so
me
wa
y to decide between
th
e
se
o
ptions,
i
t
u
ses
its
ru
les of
ope
r
a
t
or
p
r
i
ority
.
Because
d
iv
i
si
on has a
h
i
ghe
r
"p
r
i
o
r
i
ty"
t
han
additio
n
(see below
)
,
it
wi
ll
c
h
oose to do the
di
v
ision first
an
d the
n
the
addition
,
i
.
e
., i
t
will
c
hoose
t
he
s
ec
o
nd
o
pt
i
on and
retu
rn
a
v
alue
o
f 65
fo
r
the
e
x
p
r
e
ss
i
on
.
o
r
5
+
45
1
00
+
45
=
65
5
=
2
a
s
e
ith
e
r
a ca
l
c
ul
ati
o
n
or as a part
o
f
a
p
r
ogram
,
th
e
COMPUTE
R
doe
s
not
k
no
w
whe
t
her yo
u
meant:
100
/
5
+
4
5
W
h
e
n
t
he SHARP COMPUTER
is
g
i
v
e
n a
co
mpl
e
x
e
x
p
r
es
s
i
o
n
,
it ev
a
l
uates
th
e
pa
rts
of
t
h
e
e
x
p
re
ssio
n
i
n
a
se
q
ue
n
c
e
dete
r
mined
b
y
th
e p
r
ior
it
y of
t
he
i
ndividu
a
l
pa
rt
s
of
th
e
e
x
p
r
es
sio
n
. I
f
yo
u
ent
e
r
th
e
ex
pr
essi
on
:
APPENDIX
D
Expres
s
ion
E
valua
ti
o
n
a
nd
O
p
er
a
tor
P
r
i
o
r
i
ty

Related product manuals