Sdílet prostřednictvím


JSONArray.GetDouble(Int32) Method

Definition

Returns the value at index if it exists and is a double or can be coerced to a double.

[Android.Runtime.Register("getDouble", "(I)D", "GetGetDouble_IHandler")]
public virtual double GetDouble (int index);
[<Android.Runtime.Register("getDouble", "(I)D", "GetGetDouble_IHandler")>]
abstract member GetDouble : int -> double
override this.GetDouble : int -> double

Parameters

index
Int32

Returns

Attributes

Exceptions

if the value at index doesn't exist or cannot be coerced to a double.

Remarks

Returns the value at index if it exists and is a double or can be coerced to a double.

Java documentation for org.json.JSONArray.getDouble(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