pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

base
indicates a number base as follows:
%Octal
%bBinary
%hHexadecimal
The default base is decimal.
integer
is one or more of the following digits:
0 through 9Decimal
0 through 7Octal
0 or 1Binary
0 through 9, A through F (not case-sensitive)Hexadecimal
Examples of INT numeric constants:
3
-32045
Decimal
%177
-%5
Octal
%B01010
%b1001111000010001
Binary
%H1A
%h2f
Hexadecimal
The system stores signed integers in two’s complement notation. It obtains the negative of a number
by inverting each bit position in the number, and then adding 1.
00000000000000102 is stored as
1111111111111110-2 is stored as
INT(32) Numeric
Signed or unsigned 32-bit integerRepresentation
-2,147,483,648 through 4,294,967,295Range
Constants 59