|
ION Java User's Guide: ION Java Class and Method Reference |
|
The getDouble() method returns the double value of the variable. If the value is not of type double, the scalar value is converted to a double.
public final double getDouble()
The method returns the double value of the variable.
None.
IONIsAnArrayException, NumberFormatException
try {
double d = myVariable.getDouble();
}catch(IONIsAnArrayException e){
System.err.println("Variable is an array");
}catch(NumberFormatException e){
System.err.println("String Cannot be converted");
}
IDL Online Help (March 06, 2007)