core-ktx / androidx.database / android.database.Cursor / getFloatOrNull

getFloatOrNull

inline fun Cursor.getFloatOrNull(index: Int): Float?

Returns the value of the requested column as a nullable float.

The result and whether this method throws an exception when the column type is not a floating-point type is implementation-defined.

See Also

Cursor.isNull

Cursor.getFloat

inline fun Cursor.getFloatOrNull(columnName: String): Float?

Returns the value of the requested column as a nullable float.

The result and whether this method throws an exception when the column type is not a floating-point type is implementation-defined.

See Also

Cursor.getColumnIndexOrThrow

Cursor.isNull

Cursor.getFloat