A COMPLEX(8) or DOUBLE COMPLEX constant is a pair of constants that represents a complex number. One of the pair must be a double-precision real constant, the other can be an integer, single-precision real, or double-precision real constant.
A COMPLEX(8) or DOUBLE COMPLEX constant occupies 16 bytes of memory and is interpreted as a complex number.
The rules for DOUBLE PRECISION (REAL(8)) constants also apply to the double precision portion of COMPLEX(8) or DOUBLE COMPLEX constants. (See Sections 220.127.116.11 and 18.104.22.168 for the rules on forming DOUBLE PRECISION constants.)
The DOUBLE PRECISION constants in a COMPLEX(8) or DOUBLE COMPLEX constant have one of the following formats:
The following examples demonstrate valid and invalid COMPLEX(8) or DOUBLE COMPLEX constants:
| ||Second constant missing.|
| ||Hollerith constants not allowed.|
| ||Neither constant is DOUBLE PRECISION; this is a valid single-precision constant.|
For More Information: