Previous ION Java User's Guide: ION Java Class and Method Reference Next

getImaginary()

The getImaginary() method returns the imaginary value of the complex variable. If the value is not of type complex, zero is returned.

Syntax

public final float getImaginary()

Return Value

The method returns the imaginary value of the complex variable.

Arguments

None.

Exceptions

IONIsAnArrayException

Example

try {  
float i = myVariable.getImaginary();  
}catch(IONIsAnArrayException e){  
   System.err.println("Variable is an array");  
}  

  IDL Online Help (March 06, 2007)