EasyManua.ls Logo

Commodore 128D - Page 323

Commodore 128D
427 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...
Basic
Functions
n
ABS
ASC
f
)
ATN
The
format
of
the
function
description
is:
FUNCTION
(argument)
where
the
argument
can
be
a
numeric
value,
variable
or
string.
Each
function
description
is
followed
by
an
EXAMPLE.
The
lines
appearing
in
bold
face
in
the
examples
are
the
functions
you
type
in.
The
line
without
bold
is
the
computer's
response.
—Return
absolute
value
ABS(X)
The
absolute
value
function
returns
the
positive
value
of
the
argu
ment
X.
EXAMPLE:
PRINT
ABS
(7*(-5))
35
—Return
CBM
ASCII
code
for
character
ASC(X$)
This
function
returns
the
ASCII
code
of
the
first
character
of
X$.
You
no
longer
have
to
append
CHR$(0)
to
a
null
string.
ILLEGAL
QUAN
TITY
ERROR
is
no
longer
issued.
EXAMPLE:
X$
=
"C128":PRINT
ASC
(X$)
67
—Return
angle
whose
tangent
is
X
radians
ATN
(X)
This
function
returns
the
angle
whose
tangent
is
X,
measured
in
radi
ans.
EXAMPLE:
PRINT
ATN
(3)
1.24904577
315
BASIC
7.0
ENCYCLOPEDIA-Basic
Functions

Table of Contents

Other manuals for Commodore 128D

Related product manuals