pTAL Reference Manual (H06.03+)
Language Elements
HP pTAL Reference Manual—523746-005
2-12
Constants
Constants
A constant is a value you can store in a variable, declare as a LITERAL, or use as part
of an expression. Constants can be numbers or character strings. The following are
examples of constants:
You can specify numeric constants in binary, octal, decimal, or hexadecimal base,
depending on the data type of the item. The default number base in pTAL is decimal.
The following are example constants in each number base:
Statements
A statement specifies operations to be performed on declared objects. Statements are
discussed in Section 12, Statements, and summarized in Table 12-1 on page 12-1.
Constant Type Example
Character string "abc"
Numeric 654
Number Base Example
Decimal
47
Binary
%B101111
Octal
%57
Hexadecimal
%H2F










