# B.7 Alternative Syntax for Octal and Hexadecimal Constants

In Compaq Fortran, you can use an alternative syntax for octal and hexadecimal constants. The following table shows this alternative syntax and equivalents:

Constant | Alternative Syntax | Equivalent
--- | --- | ---
Octal | '0..7'O | O'0..7'
Hexadecimal | '0..F'X | Z'0..F'

You can use a quotation mark (") in place of an apostrophe in all the above syntax forms.

For More Information:

- On octal constants, see Section 3.3.2.
- On hexadecimal constants, see Section 3.3.3.

Previous Page Next Page Table of Contents