Hexadecimal Numeric Constant

Hexadecimal numeric constants take the form: **H**

where is a string of hexadecimal characters (0 to 9 and A to F) enclosed in single quotes ( // ), with a length from 1 to 16 characters.

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"

See Also

Hexadecimal Literal

***** Byte Data Type

***** Integer2 Data Type

***** Integer4 Data Type

***** Integer8 Data Type