A COMPLEX(4) constant is a pair of integer or single-precision real constants that represent a complex number.
A COMPLEX(4) constant occupies eight bytes of memory and is interpreted as a complex number.
If the real and imaginary part of a complex literal constant are both real, the kind parameter value is that of the part with the greater decimal precision.
The rules for REAL(4) constants apply to REAL(4) constants used in COMPLEX constants. (See Sections 18.104.22.168 and 22.214.171.124 for the rules on forming REAL(4) constants.)
The REAL(4) constants in a COMPLEX constant have one of the following formats:
The following examples demonstrate valid and invalid COMPLEX(4) constants:
| ||Missing second integer or single-precision real constant.|
||Hollerith constant not allowed.|
For More Information: