EasyManua.ls Logo

Commodore Plus 4 - Page 26

Commodore Plus 4
464 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...
14
The
BASIC
Language
any
sign,
which
means
negative
signs
are
removed
from
negative
numbers.
The
absolute
value
of
0
is
0.
Parameter:
any
number,
positive
or
negative,
or
a
numeric
expression
To
display
the
absolute
value
for
a
number,
put
the
ABS
function
in
a
PRINT
command.
Examples:
PRH5TT
ABS(35)
35
PRIlTTABS(-35)
35
ASC
ASC
(string)
Displays
Displays
Abbr.
aS
the
the
absolute
absolute
value
value
of
of
35.
-35.
ASC
is
the
numeric
function
that
finds
the
character-string
code
for
the
first
character
of
the
string
inside
parentheses.
ASC
is
the
opposite
of
the
CHR$(x)
function,
which
finds
the
character
for
the
character-string
code
number
enclosed
in
parentheses.
Parameter:
any
character
or
key
in
quotation
marks,
or
a
string
expression
If
you
type
more
than
one
character
in
an
ASC
function,
the
computer
prints
the
code
for
only
the
first
character
in
the
string;
all
other
characters
are
ignored.
To
display
the
character-string
code
for
a
character,
put
the
ASC
function
in
a
PRINT
command.
Examples:
PRINT
ASC("M")
Displays
the
CHR$
code
for
M.
77
PRINT
ASC("||3|")
Displays
the
CHR$
code
for
the
shifted
CLEAR
147
key,
which
is
printed
as
a
reversed
heart.
PRINT
ASC("MAP")
Displays
the
CHR$
code
for
only
the
first
letter
in
77
the
string
MAP.
ATN
Abbr.
aT
ATN
(number)
ATN
is
the
numeric
function
that
finds
the
arctangent
in
radians
of
the
number
enclosed
in
parentheses.
For
more
information,
see
the
Mathematical
Calcula
tions
section
of
Chapter
3.

Other manuals for Commodore Plus 4

Related product manuals