EasyManua.ls Logo

Apple IIe - ABS, AND, ASC Functions and Operators

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...
82
Apple lie Users
Handbook
Applesoft
ABS
Integer
The
ABS
function
returns
the
absolute
value
of
the
argument.
A
number's
absolute value
is
its value
without
regard
to
sign.
Configuration
ABS(argument)
The
argument
can
be
any
numeric
expression
or
numeric
constant. In
Integer
BASIC,
the
numeric
constant must
be
an
integer.
Example
10
A=
ABS(-1 *
7)
20
PRINT A, ABS(2.
99)
]RUN
[Ret]
7 2.99
In
the
preceding
example
,
the
absolute
values
of
-7 and 2.
99
are
returned.
Applesoft
AND
Integer
AND
is
a
lo~ical
math
operator
. This reserved
word
is
generally
used
to
compare
two
numeric
expressions
in
the
context
of
an
IF,
THEN statement.
Configuration
expression1
AND
expression2
expression1
and
expression2 are Boolean expressions.
If
an
expression was
numeric
(not
zero),
that
expression
would
evaluate
as
true.
For
example,
if
an expression evaluated
to
5,

Other manuals for Apple IIe

Related product manuals