getDouble

abstract fun getDouble(@IntRange(from = 0) index: Int): Double

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

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

Return

The value of the column as a Double.

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.