GetFloat method

Returns the value of the specified column as a single-precision floating point number.

Syntax
Visual Basic

Public Overrides Function GetFloat( _
   ByVal ordinal As Integer _
) As Single
C#

public override float  GetFloat(
   int ordinal
);
Parameters
  • ordinal   An ordinal number indicating the column from which the value is obtained. The numbering is zero-based.

Return value

The value of the specified column.

Remarks

No conversions are performed, so the data retrieved must already be a single-precision floating point number.

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

See also