MySQL Connector/Net
MySqlDataReaderGetFloat Method (String) |
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

public float GetFloat( string column )
Public Function GetFloat ( column As String ) As Single
public: float GetFloat( String^ column )
member GetFloat : column : string -> float32
Parameters
- column
- Type: SystemString
The column name
Return Value
Type: SingleThe value of the specified column.

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.
