EasyManua.ls Logo

Commodore 16 - Page 57

Commodore 16
84 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...
NUMBERS
AND
CALCULATIONS
Your
computer
reads
this
the
same
as
it
would
inter
pret
PRINT.
Order
Of
Calculation
You
can
do
more
than
one
calculation
in
one
line,
like
this:
PRINT
200*50
+
5
or
this:
PRINT
50+
5*200
These
nearly
identical
problems
give
completely
different
answers.
Your
Commodore
16
always
performs
calculations
in
a certain
order:
FIRST:
Your
computer
checks
for
negative
numbers
(not
subtraction,
just
negative
numbers).
SECOND:
Your
computer
solves
any
exponents.
THIRD:
Your
computer
solves
all
multiplication
and
division,
from
left
to
right.
FOURTH:
Your
computer
solves
addition
and sub
traction,
from
left
to
right.
NOTE:
Your
Commodore
16
always
solves
any
part
of
the
problem
surrounded
by
parentheses
first.
39

Other manuals for Commodore 16

Related product manuals