The data types defined by ANSI FORTRAN 77 are as follows:
The data type of a variable, symbolic constant, or function can be declared in a specification statement. If its type is not declared, the compiler determines a data type by the first letter of the variable, constant, or function name. A type statement can also dimension an array variable.
Default requirements for these data types are listed in the following table:
Type | Bytes |
---|---|
INTEGER | 4 |
REAL | 4 |
DOUBLE PRECISION | 8 |
COMPLEX | 8 |
LOGICAL | 4 |
CHARACTER | 1 |
CHARACTER*n | n 1 |
1 Where the maximum n is 32,767. |