Character Set; Constants - Omron C200H-ASC11 Manual

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

Program Configuration
7-4-3

Character Set

7-4-4

Constants

Constant
Character Constants
Integer Constants
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) ! " # $ & ' ( ) * + , – . / : ; < = > ? [ \ ] ^ _
The following can be used as constants.
Character
Numeric
Integer
Floating-point
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"
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
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
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
Short integer
Long integer
Single-precision
Double-precision
–1234 12% (integer)
&7777
&HBF4
Section 7-4
Decimal
Octal
Hexadecimal
Decimal
Octal
Hexadecimal
12345678& (long integer)
123

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents