next up previous contents index
Next: Guidelines Up: Data Types Previous: Character Type

Storage Units

  Although the Fortran Standard does not specify the absolute amount of memory to be allocated to each data type, it does specify the relative amounts. This is not important very often, only when constructing unformatted direct-access records or when using COMMON and EQUIVALENCE statements. The rules are as follows:

Data types Storage units
integer, real, logical 1 numerical storage unit
complex, double precision 2 numerical storage units
character*(N) N character storage units

In the case of an array the number of storage units must be multiplied by the total number of elements in the array.

The relationship between the numeric and character storage units is deliberately undefined because it is entirely system-dependent.

Helen Rowlands