DB2Record.GetDouble Method
Gets the value of the specified column as a double-precision floating point number.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Function GetDouble( _
ByVal i As Integer _
) As Double
[C#]
public double GetDouble(
int i
);
[C++]
public: double GetDouble(
int i
);
[JScript]
public function GetDouble(
i : int
) : double;
Parameters
- i
- The zero-based column ordinal.
Return value
The value of the specified column as a double-precision floating point number.
Exceptions
Exception type | Condition |
---|---|
InvalidCastException | The specified cast is not valid. |
DB2Exception | Invalid conversion. |
Remarks
No conversions are performed. The data to be retrieved must be of DB2Type.Double.
The following
table describes the mapping between the return object data type and
the data server data type.
DB2®Type Data Type | Db2® Data Type | Informix® Data Type |
---|---|---|
Double | DOUBLE PRECISION | DECIMAL (≤31), DOUBLE PRECISION |
Call IsDBNull to check for null values before calling this method.