GetFloat Method

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

Syntax

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.

Implements

IDataRecord.GetFloat

Usage

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

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

  • Use GetFloat for Adaptive Server types real and float with a precision less than 16 and GetDouble for Adaptive Server type float with a precision greater than or equal to 16.

Related reference
IsDBNull Method