Intel® Fortran Compiler 18.0 Developer Guide and Reference

COMPLEX(16) Constants

A COMPLEX(16) constant is a pair of constants that represents a complex number. One of the pair must be a REAL(16) constant, the other can be an integer, single-precision real, double-precision real, or REAL(16) constant.

A COMPLEX(16) constant occupies 32 bytes of memory and is interpreted as a complex number.

The rules for REAL(16) constants apply to REAL(16) constants used in COMPLEX constants. (See General Rules for Complex Constants and REAL(16) Constants for the rules on forming REAL(16) constants.)

The REAL(16) constants in a COMPLEX constant have IEEE* binary128 format.

Note that compiler option real-size can affect REAL data.

Examples

Valid COMPLEX(16) Constants

(1.7039,-1.7039Q2)

(547.3E0_16,-1.44)

(+12739D3,0.Q0)

Invalid COMPLEX(16) Constants

(1.23Q0,)

Second constant missing.

(1D1,2H12)

Hollerith constants not allowed.

(1.7039E0,-1.7039D0)

Neither constant is REAL(16); this is a valid double-precision constant.

See Also