TAL Reference Manual

Data Representation
TAL Reference Manual526371-001
3-9
Example of Character String Constant
In assignment statements, a character string can contain at most four characters,
depending on the data type of the variable.
Example of Character String Constant
This example declares an INT variable and initializes it with a character string:
INT chars := "AB";
String Numeric Constants
Representation: Unsigned 8-bit integer
Range: 0 through 255
base
is %, %B, or %H, which indicates a number base:
integer
is one or more digits. The digits allowed are:
Example of STRING Numeric Constants
Here are examples of STRING numeric constants:
Octal %
Binary %B
Hexadecimal %H
If you omit the base, the default base is decimal
Decimal 0 through 9
Octal 0 through 7
Binary 0 or 1
Hexadecimal 0 through 9, A through F
Decimal
255
Octal
%12
Binary
%B101
Hexadecimal
%h2A
integer
base
VST0303.vsd