pTAL Reference Manual (H06.08+)

Data Representation
HP pTAL Reference Manual523746-006
3-2
Data Types
Topics:
Specifying Data Types on page 3-3
Data Type Aliases on page 3-4
Operations by Data Type on page 3-4
INT
INT(16)
2
Word
String of one or two ASCII characters
Unsigned 6-bit integer in the range 0 through
65,535
Signed 6-bit integer in the range -32,768 through
32,767
INT(32) Doubleword 32-bit integer in the range -2,147,483,648 through
+2,147,483,647
REAL
REAL(32)
4
Doubleword 32-bit floating-point number in the range
±8.6361685550944444E-78 through
±1.15792089237316192E, precise to approximately
6.5 significant decimal digits.
FIXED
FIXED(0)
INT(64)
3
FIXED(-19 to -1)
FIXED(1 to 19)
Quadrupleword 64-bit fixed-point number. For FIXED, FIXED(0),
FIXED (
*
), and INT(64) the range is
-9,223,372,036,854,775,808 through
+9,223,372,036,854,775,807.
REAL(64) Quadrupleword 64-bit floating-point number in the same range as
data type REAL but precise to approximately 16.5
significant decimal digits.
UNSIGNED
n
-bit field UNSIGNED(1-15) and UNSIGNED(17-31): Unsigned
integer in the range 0 through (2
n
-1)
UNSIGNED(16):
Unsigned integer in the range 0 through 65,535
Signed integer in the range -32,768 through
32,767
UNSIGNED simple variable: The bit field can be 1 to
31 bits.
UNSIGNED array: The element bit field can be 1, 2,
4, or 8 bits.
Table 3-2. Data Types (page2of2)
Data Type Storage Unit
1
Values the Data Type Can Represent
1. Table 3-1 on page 3-1 describes storage units.
2. INT and INT(16) are the same type.
3. FIXED, FIXED(0), and INT(64) are the same type.
4. REAL and REAL(32) are the same type.