Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-BB3A2131-C3D6-486A-8F1B-0DCE1C911D92
Visible to Intel only — GUID: GUID-BB3A2131-C3D6-486A-8F1B-0DCE1C911D92
Alternative Syntax for Binary, Octal, and Hexadecimal Constants
In Intel® Fortran, you can use an alternative syntax for binary, octal, and hexadecimal constants. The following table shows the alternative syntax and equivalents:
Constant |
Alternative Syntax |
Equivalent |
---|---|---|
Binary |
'0..1'B |
B'0..1' |
Octal |
'0..7'O |
O'0..7' |
Hexadecimal |
'0..F'X X'0..F' |
Z'0..F' |
You can use a quotation mark (") in place of an apostrophe in all the above syntax forms.
For information on the # syntax for integers not in base 10, see Integer Constants.