EasyManua.ls Logo

Commodore CBM - Special Symbols as Program Operators

Commodore CBM
447 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...
Table 2-1. Special Symbols
as
Program Operators
Symbol Description
Program Operator Use
Example
Space
To improve program legibility; dis- 100
READ
Y
regarded by
PET
BASIC
ex
ce
pt
in
1
1
strings
!
Exclamation mark
(none)
..
Double quotation mark
Begins and ends a string
"STRING"
#
Pound sign
(none)
$
Dollar sign
Denotes string variable
C$
%
Percent sign
Denotes integer variable
C%
&
Ampersand
(none)
Single quotation mark
(none)
Il
Parentheses
1.
Enclose array subscripts
AR(1.5)
2.
Enclose function arguments
SQR(114)
3.
Denote expression
((A+2)/5)
12
evaluation precedence
*
Asterisk
Multiplication
4*16
+
Plus sign Addition. positive number
2+2
+57
Comma
1.
Separates items in a list
READ
A.B.C
2.
Denotes tabbed format
PRINT
X.Y.Z
-
Minus
sign
Subtraction. negative number
14-6
-32
Period
Decimal point
65.02
/
Slash
Division
1412
:
Colon
Separates
mu
Itiple statements
PRINT
A:GOTO 10
on
a line
;
Semicolon
Denotes continuous-line format
PRINT
A;B;C
<
Left carat
Less
than
A<100
=
Equal sign 1
Equal
to
IFA=B
2 Replaces
C=600
>
Right carat
Greater than
C>D
?
Question mark
Abbreviation for
PRINT
?"HII"
@
Atsign
(none)
[ ]
Brackets (none)
\
Backslash (none)
1
Up arrow Exponentiation A12
-
Left arrow (none)
19

Table of Contents

Other manuals for Commodore CBM

Related product manuals