次の方法で共有


ScientificNumberFormatter.Format(Object) Method

Definition

Formats a number

[Android.Runtime.Register("format", "(Ljava/lang/Object;)Ljava/lang/String;", "", ApiSince=26)]
public string? Format (Java.Lang.Object? number);
[<Android.Runtime.Register("format", "(Ljava/lang/Object;)Ljava/lang/String;", "", ApiSince=26)>]
member this.Format : Java.Lang.Object -> string

Parameters

number
Object

Can be a double, int, Number or anything that DecimalFormat#format(Object) accepts.

Returns

the formatted string.

Attributes

Remarks

Formats a number

Java documentation for android.icu.text.ScientificNumberFormatter.format(java.lang.Object).

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