A hexadecimal constant is an alternative way to represent numeric constants. A hexadecimal constant takes one of the following forms:
You can specify up to 256 bits in hexadecimal (64 hexadecimal digits) constants. Leading zeros are ignored.
Examples
The following examples demonstrate valid and invalid hexadecimal constants:
Valid | |
Z'AF9730' | |
Z"FFABC" | |
Z'84' | |
Invalid | Explanation |
Z'999.' | Decimal not allowed. |
ZF9" |
No quotation mark after the Z. |
For More Information:
For details on an alternative form for hexadecimal constants, see Section B.7.