TAL Reference Manual

Data Representation
TAL Reference Manual526371-001
3-11
Examples of INT Numeric Constants
Examples of INT Numeric Constants
Here are examples of INT numeric constants:
Storage Format
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.
2 is stored as 0000000000000010
-2 is stored as 1111111111111110
INT (32) Numeric Constants
Representation: Signed or unsigned 32-bit integer
Range: –2,147,483,648 through 2,147,483,647
base
is %, %B, or %H, which indicates a number base:
Decimal
3
-32045
Octal
%177
-%5
Binary
%B01010
%b1001111000010001
Hexadecimal
%H1A
%h2f
Octal %
Binary %B
Hexadecimal %H
The default base is decimal
VST0305.vsd
integer
+
-
base
D
%D