Sdílet prostřednictvím


JSONObject.NumberToString(Number) Method

Definition

Encodes the number as a JSON string.

[Android.Runtime.Register("numberToString", "(Ljava/lang/Number;)Ljava/lang/String;", "")]
public static string NumberToString (Java.Lang.Number number);
[<Android.Runtime.Register("numberToString", "(Ljava/lang/Number;)Ljava/lang/String;", "")>]
static member NumberToString : Java.Lang.Number -> string

Parameters

number
Number

a finite value. May not be Double#isNaN() NaNs or Double#isInfinite() infinities.

Returns

Attributes

Exceptions

Remarks

Encodes the number as a JSON string.

Java documentation for org.json.JSONObject.numberToString(java.lang.Number).

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