FORTRAN Reference Manual
Statements
FORTRAN Reference Manual—528615-001
7-4
Type Declaration Statements—NUMERIC
Considerations
See the description of the LOGICAL*4 directive in Section 10, Compiler Directives. For
information about two-word logical types and standard conformance, see Section 2,
Language Elements.
Example
The following statement declares that the variable CONDITION is of logical type:
LOGICAL condition
Type Declaration Statements—NUMERIC
NUMERIC type declaration statements specify the numeric type of a symbolic
constant, variable, array, RECORD field, function name, or dummy procedure name.
name
is the symbolic name of a constant, variable, array, RECORD field, function, or
dummy procedure.
d
is an array bounds specification in the form:
( [ lower:] upper [, [ lower:] upper ]... )
where lower is an integer expression indicating the lower bound, and upper is an
integer expression indicating the upper bound of an array dimension.
Considerations
You can declare the length of an integer variable explicitly by using an INTEGER*2,
INTEGER*4, or INTEGER*8 type declaration statement. If you declare a variable
(explicitly or by default) as INTEGER without a length specification, its length is
determined by the INTEGER* n compiler directive in effect for that program unit.
name [ d ] [, name [ d ] ]...
INTEGER
INTEGER*2
INTEGER*4
INTEGER*8
REAL
DOUBLE PRECISION
COMLEX










