pTAL Reference Manual (H06.08+)
Data Representation
HP pTAL Reference Manual—523746-006
3-15
INT Numeric
INT Numeric
base
indicates a number base as follows:
The default base is decimal.
integer
is one or more of the following digits:
Examples of INT numeric constants:
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.
Representation Signed or unsigned 16-bit integer
Range (unsigned) 0 through 65,535
Range (signed) -32,768 through 32,767
Octal %
Binary %b
Hexadecimal %h
Decimal 0 through 9
Octal 0 through 7
Binary 0 or 1
Hexadecimal 0 through 9, A through F (not case-sensitive)
Decimal 3
-32045
Octal %177
-%5
Binary %B01010
%b1001111000010001
Hexadecimal %H1A
%h2f
2 is stored as 0000000000000010
-2 is stored as 1111111111111110
+
-
base
integer
VST027.vsd










