EasyManua.ls Logo

Commodore 128 - Page 350

Commodore 128
448 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...
VAL
Return the numeric value of a number string
VAL(X$)
This function converts the string X$ into a number. It is the
inverse operation of STR$. The string is examined from the left
most character to the right, for as many characters as are in
recognizable number format. If the Commodore 128 finds illegal
characters, only the portion of the string up to that point is
converted. If no numeric characters are present, VAL returns a 0.
EXAMPLE:
10 A$ = 120
20 B$ = 365
30 PRINT VAL (A$) + VAL(BS)
RUN
485
XOR
Return exclusive OR
XOR (n1,n2)
This function provides the exclusive OR of the argument values
n1 and n2.
x = XOR (n1,n2)
where n1, n2, are 2 unsigned values (0-65535).
EXAMPLE:
PRINT XOR(128,64)
192
Note: n1 and n2 need not be whole numbers.
18-22

Table of Contents

Other manuals for Commodore 128

Related product manuals