Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


COMPLEXROUND

COMPLEXROUND

The COMPLEXROUND function rounds real and imaginary components of a complex 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.

Examples


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

IDL prints:

(   1.00000,   4.00000)(   9.00000,   0.00000)

Syntax


Result = COMPLEXROUND(Input)

Return Value


Returns the result of rounding the real and imaginary components of the input array. If the array is double-precision complex, then the result is also double-precision complex.

Arguments


Input

The complex array to be rounded.

Keywords


None.

Version History


Pre 4.0

Introduced

See Also


ROUND



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us