Hexadecimal Numeric Constant
Hexadecimal numeric constants take the form: **H
where
Remarks
Hex constants are another way to declare integral constants. The size of the integral depends on the length of the hex string (and not on the value of the hex number):
-
If the length is from 1 to 2 digits, then the type is ***** Byte.
-
if the length is from 3 to 4 digits, the type is ***** Integer2.
-
if the length is from 5 to 8 digits, the type is ***** Integer4.
-
if the length is from 9 to 16 digits, the type is ***** Integer8.
So H”00000001” will be a number 1 with type * Integer 4 , while H”1” will be a number 1 with type * Byte .
Example
H"34B"
H"800040ef"