Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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.