pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
Table 19 Operations by Data Type (continued)
REAL or REAL(64)FIXED
INT(32) or
UNSIGNED
(17-31)
INT or UNSIGNED
(1-16)STRINGOperation
NoNoYesYesYesBit shifts
YesYesYesYesYesByte scans
The data type of a variable also determines which built-in routines you can use with the variable
(see Chapter 15 (page 274)).
Address Types
Every identifier that you declare has both a data type and an address type. The data type describes
the data item itself. The address type describes the address of the data item. If you declare a pointer
to the data item, the value that you assign to the pointer must be of that address type.
You cannot explicitly declare the address type of a pointer. When you declare a pointer, the
compiler determines its address type.
Table 20 Data Types and Their Address Types
Storage Unit
1
Address TypeData TypePointer Declaration
ByteBADDRSTRING.s;STRING
WordWADDRINT.i;INT
WordWADDRINT(32).j;INT(32)
WordWADDRREAL.r;REAL
WordWADDRREAL(64).s;REAL(64)
WordWADDRFIXED.f;FIXED
WordWADDRnone.t;STRUCT
ByteBADDRnone.v;SUBSTRUCT
WordWADDRaddress_type
3
.a;addr-type
2
ByteEXTADDRSTRING.EXT s;STRING
ByteEXTADDRINT.EXT i;INT
ByteEXTADDRINT(32).EXT j;INT(32)
ByteEXTADDRREAL.EXT r;REAL
ByteEXTADDRREAL(64).EXT s;REAL(64)
ByteEXTADDRFIXED.EXT f;FIXED
ByteEXTADDRnone.EXT t;STRUCT
ByteEXTADDRnone.EXT v;SUBSTRUCT
ByteEXTADDRaddress_type
3
.EXT a;addr-type
2
ByteEXT32ADDR
4
STRING.EXT32 s;STRING
ByteEXT32ADDR
4
INT.EXT32 i;INT
ByteEXT32ADDR
4
INT(32).EXT32 k;INT(32)
ByteEXT32ADDR
4
REAL.EXT32 r;REAL
ByteEXT32ADDR
4
FIXED.EXT32 f;FIXED
Address Types 49