Gets the value of the specified column as a single-precision floating-point number.
[Visual Basic]
Public Function GetFloat( _
ByVal i As Integer _
) As Single
[C#]
public float GetFloat(
int i
);
[C++]
public: float GetFloat(
int i
);
[JScript]
public function GetFloat(
i : int
) : float;
The value of the specified column as a single-precision floating-point number.
| Exception type | Condition |
|---|---|
| InvalidCastException | The specified cast is not valid. |
| DB2Exception | Invalid conversion. |
No conversions are performed. The data to be retrieved must be of DB2®Type.Real.
| DB2Type Data Type | DB2 Data Type | Informix® Data Type |
|---|---|---|
| Real | REAL | REAL, SMALLFLOAT |
Call IsDBNull to check for null values before calling this method.