COMPLEXROUND

The COMPLEXROUND function rounds real and imaginary components of a complex array and returns the resulting array.

This routine is written in the IDL language. Its source code can be found in the file complexround.pro in the lib subdirectory of the IDL distribution.

Calling Sequence

Result = COMPLEXROUND( Input )

Arguments

Input

The complex array to be rounded.

Example

X = [COMPLEX(1.245, 3.88), COMPLEX(9.1, 0.3345)]

PRINT, COMPLEXROUND(X)

IDL prints:

( 1.00000, 4.00000)( 9.00000, 0.00000)

See Also

ROUND