In Compaq Fortran 77, you can use an alternative syntax for binary, octal, and hexadecimal constants. The following table shows this alternative syntax and equivalents:
Constant | Alternative Syntax | Equivalent |
---|---|---|
Binary | B'0..1' | '0..1'B |
Octal | O'0..7' | '0..7'O |
Hexadecimal | X'0..F' | '0..F'X |
Z'0..F' | '0..F'Z |
On Alpha processors, you can use a quotation mark (") in place of an apostrophe in all the above syntax forms.
For details on bit constants, see Section 2.2.1.4.