Intel® Fortran Compiler 18.0 Developer Guide and Reference
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.