
123
Program Configuration
Section 7-4
7-4-3
Character Set
The BASIC character set comprises alphabetical characters, numeric charac-
ters, and special characters.
The alphabetic characters in BASIC are the uppercase and lowercase letters
of the alphabet. The numeric characters in BASIC are the digits 0 through 9.
The following special characters are recognized by BASIC:
SP (space) ! ” # $ & ’ ( ) * + , – . / : ; < = > ? [ \ ] ^ _
7-4-4
Constants
The following can be used as constants.
Character Constants
A character constant is a character string enclosed by double quotation marks
(”). It can be up to 255 characters long. If it contains no characters, it is called
an “empty character string” or the null string.
Example:
“CF–BASIC”
Integer Constants
There are two types of integers:
• Short integers (16-bit)
• Long integers (32-bit)
Decimal Constants
Whole numbers between –32,768 and 32,767 can be used for short integers,
and whole numbers between –2,147,483,648 and 2,147,483,647 can be used
for long integers. An optional percent sign (%) for an integer, and an “and”
sign (&) for a long integer can be added to specifically indicate an integer con-
stant. Integer constants do not have decimal points.
Example:
1234
–1234 12% (integer)
12345678& (long integer)
Octal Constants
Octal numbers 0 to 7 beginning with the prefix “&” and between &0 and
&177777 can be used for integers. For long integers, between &0 and
&37777777777 can be used.
Example:
&
0127
&7777
Hexadecimal Constants
Hexadecimal numbers 0 to F (0 to 9, A to F) beginning with the prefix “&H”
and between &H0000 and &HFFFF can be used for integers. Between &H0
and & HFFFFFFFF can be used for long integers.
Example:
&H5E
&HBF4
Short integer
Constant
Character
Numeric
Integer
Decimal
Octal
Hexadecimal
Floating-point
Single-precision
Double-precision
Long integer
Decimal
Octal
Hexadecimal
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...