Intel® Fortran Compiler 16.0 User and Reference Guide

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.

See Also