GetFloat Method (Int32)

MySQL Connector/Net

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.2.2.0

Syntax

C#
public override float GetFloat(
	int i
)
Visual Basic (Declaration)
Public Overrides Function GetFloat ( _
	i As Integer _
) As Single
Visual C++
public:
virtual float GetFloat(
	int i
) override

Parameters

i
Type: System..::.Int32
The zero-based column ordinal.

Return Value

The value of the specified column.

Implements

IDataRecord..::.GetFloat(Int32)
IDataRecord..::.GetFloat(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