Top: f77 Up: 8,4 - Constants
Previous: 8,4,2 - Character Next: 8,4,4 - Hollerith
Section 8,4,3: Complex
A complex constant consists of a pair of real or integer constants.
The two constants are separated by a comma and enclosed in
parentheses. The first constant represents the real part of the
number and the second constant represents the imaginary part.
DEC Fortran supports COMPLEX*8 and COMPLEX*16 complex constants.
A COMPLEX (COMPLEX*8) constant has the form:
(c,c) c is an integer or REAL (REAL*4) constant
A DOUBLE COMPLEX (COMPLEX*16) constant has the form:
(c,c) c is an integer, REAL (REAL*4), or
DOUBLE PRECISION (REAL*8) constant (at
least one of the pair must be a DOUBLE
PRECISION constant)
Top: f77 Up: 8,4 - Constants
Previous: 8,4,2 - Character Next: 8,4,4 - Hollerith