Share via


CursorWindow.GetDouble(Int32, Int32) Method

Definition

Gets the value of the field at the specified row and column index as a double.

[Android.Runtime.Register("getDouble", "(II)D", "GetGetDouble_IIHandler")]
public virtual double GetDouble (int row, int column);
[<Android.Runtime.Register("getDouble", "(II)D", "GetGetDouble_IIHandler")>]
abstract member GetDouble : int * int -> double
override this.GetDouble : int * int -> double

Parameters

row
Int32

The zero-based row index.

column
Int32

The zero-based column index.

Returns

The value of the field as a double.

Attributes

Remarks

Gets the value of the field at the specified row and column index as a double.

The result is determined as follows: <ul> <li>If the field is of type Cursor#FIELD_TYPE_NULL, then the result is 0.0.</li> <li>If the field is of type Cursor#FIELD_TYPE_STRING, then the result is the value obtained by parsing the string value with strtod. <li>If the field is of type Cursor#FIELD_TYPE_INTEGER, then the result is the integer value converted to a double.</li> <li>If the field is of type Cursor#FIELD_TYPE_FLOAT, then the result is the double value.</li> <li>If the field is of type Cursor#FIELD_TYPE_BLOB, then a SQLiteException is thrown.</li> </ul>

Java documentation for android.database.CursorWindow.getDouble(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to