A complex constant approximates the value of a mathematical complex number. The constant is a pair of real or integer values, separated by a comma, and enclosed in parentheses. The first constant represents the real part of that number; the second constant represents the imaginary part.

The following is the general form of a complex constant:

(c,c)

- c
- Is as follows:
- For complex constants,
*c*is an integer or REAL(4) constant. - For double complex constants,
*c*is an integer, REAL(4) constant, or DOUBLE PRECISION (REAL(8)) constant. At least one of the pair must be DOUBLE PRECISION.

- For complex constants,

Note that the comma and parentheses are required.

Previous Page Next Page Table of Contents