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

ID 767251
Date 9/08/2022
Public

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

Document Table of Contents

Data Representation

Intel® Fortran expects numeric data to be in native little endian order, in which the least-significant, right-most zero bit (bit 0) or byte has a lower address than the most-significant, left-most bit (or byte). For information on using non-native big endian and VAX* floating-point formats, see Supported Native and Non-native Numeric Formats.

The following table lists the intrinsic data types used by Intel® Fortran, the storage required, and valid ranges. For information on declaring Fortran intrinsic data types, see Type Declarations. For example, the declaration INTEGER(4) is the same as INTEGER(KIND=4) and INTEGER*4.

Data Type

Storage

Description

BYTE

1 byte

(8 bits)

A signed integer data type equivalent to INTEGER(1).

INTEGER

See INTEGER(2), INTEGER(4), and INTEGER(8)

A signed integer, either INTEGER(2), INTEGER(4), or INTEGER(8). The size is controlled by the integer-size compiler option.

INTEGER(1)

1 byte

(8 bits)

A signed integer value from -128 to 127.

INTEGER(2)

2 bytes

(16 bits)

A signed integer value from -32,768 to 32,767.

INTEGER(4)

4 bytes

(32 bits)

A signed integer value from -2,147,483,648 to 2,147,483,647.

In addition, you can define Binary Constants.