getFloat

abstract fun getFloat(@IntRange(from = 0) index: Int): Float

Returns the value of the requested column at the given zero-based index as a Float.

If the column value is NULL, the result is 0.0f. To distinguish between a NULL value and a stored 0.0f, use the isNull method.

Return

The value of the column as a Float.

Parameters

index

The zero-based index of the column.

See also

Throws

if the index is out of bounds or the column is not a numeric type.