MySqlDataReader.GetFloat Method (Int32)

MySQL Connector/Net

MySqlDataReaderGetFloat Method (Int32)
Gets the value of the specified column as a single-precision floating point number.

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9
Syntax
public override float GetFloat(
	int i
)
Public Overrides Function GetFloat ( 
	i As Integer
) As Single
public:
virtual float GetFloat(
	int i
) override
abstract GetFloat : 
        i : int -> float32 
override GetFloat : 
        i : int -> float32 

Parameters

i
Type: SystemInt32
The zero-based column ordinal.

Return Value

Type: Single
The value of the specified column.

Implements

IDataRecordGetFloat(Int32)
IDataRecordGetFloat(Int32)
Remarks

No conversions are performed; therefore, the data retrieved must already be a Float object.

Call IsDBNull to check for null values before calling this method.

See Also