02.07.2014 Views

Intel(R) Fortran Language Reference (online version)

Intel(R) Fortran Language Reference (online version)

Intel(R) Fortran Language Reference (online version)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Intel</strong> <strong>Fortran</strong> <strong>Language</strong> <strong>Reference</strong><br />

Chapter 3<br />

Data Types, Constants, and Variables<br />

Intrinsic Data Types ................................................................................... 3-2<br />

Integer Data Types................................................................................ 3-4<br />

Real Data Types.................................................................................... 3-6<br />

General Rules for Real Constants.................................................... 3-7<br />

REAL(4) Constants .......................................................................... 3-8<br />

REAL(8) or DOUBLE PRECISION Constants ................................. 3-9<br />

REAL(16) Constants ...................................................................... 3-10<br />

Complex Data Types........................................................................... 3-10<br />

General Rules for Complex Constants........................................... 3-11<br />

COMPLEX(4) Constants ................................................................ 3-11<br />

COMPLEX(8) or DOUBLE COMPLEX Constants ......................... 3-12<br />

COMPLEX(16) Constants .............................................................. 3-13<br />

Logical Data Types.............................................................................. 3-14<br />

Character Data Type........................................................................... 3-14<br />

C Strings in Character Constants................................................... 3-16<br />

Character Substrings .................................................................... 3-17<br />

Derived Data Types ................................................................................. 3-19<br />

Derived-Type Definition....................................................................... 3-20<br />

Default Initialization............................................................................. 3-22<br />

Structure Components........................................................................ 3-23<br />

Structure Constructors........................................................................ 3-26<br />

Binary, Octal, Hexadecimal, and Hollerith Constants .............................. 3-28<br />

Binary Constants ................................................................................ 3-28<br />

Octal Constants .................................................................................. 3-29<br />

Hexadecimal Constants ...................................................................... 3-29<br />

Hollerith Constants ............................................................................. 3-30<br />

Determining the Data Type of Nondecimal Constants ........................ 3-31<br />

Variables.................................................................................................. 3-33<br />

Data Types of Scalar Variables ........................................................... 3-34<br />

Specification of Data Type.............................................................. 3-34<br />

Implicit Typing Rules ...................................................................... 3-35<br />

Arrays.................................................................................................. 3-35<br />

Whole Arrays.................................................................................. 3-38<br />

iv

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!