EasyManua.ls Logo

Apple IIe - Page 57

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...
Applesoft
BASIC
Programming
57
When
a +
or
- sign precedes a
number,
the
symbol
is
used
to
specify
that
number's
sign.
When
+
or
-
is
used
to
change a
number's
sign,
that
usage
is
known
as
a unary
operation.
Unary
operators can
be
used
to
change
the
sign
of
a
numeric
constant
or
variable
as
shown
below:
100
LET
A=
-A
When
unary
operators
are used in
the
manner
shown
above,
the
unary
operation
is
regarded
as
an
arithmetic
operation.
The
term
arithmetic expression
is
used
to
describe
the
use
of
an
arithmetic
operator
with
numeric
constants
and/or
variables.
The
following
are examples
of
arithmetic
expressions.
x + y +
70
100/A
+ B
3000.
10+1
Exponentiation
is
the
process
of
raising a
number
to
a specified
power.
For example, in
the
following,
AS
the
numeric
variable A
would
be evaluated
as:
A*A*A*A*A
In
Applesoft
BASIC,
exponentiation
is
indicated
with
the
caret
arrow
symbol,A .
Exponentiation can be used in
an
arithmetic
expression
as
shown
below:
The
preceding
expression
would
evaluate
to
73.

Other manuals for Apple IIe

Related product manuals