Language

NumberFormat.GetNumberInstance Method

Definition

Overloads

Name Description
GetNumberInstance(ULocale)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

GetNumberInstance(Locale)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

GetNumberInstance(ULocale)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

[Android.Runtime.Register("getNumberInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)]
public static Android.Icu.Text.NumberFormat? GetNumberInstance(Android.Icu.Util.ULocale? inLocale);
[<Android.Runtime.Register("getNumberInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)>]
static member GetNumberInstance : Android.Icu.Util.ULocale -> Android.Icu.Text.NumberFormat

Parameters

inLocale
ULocale

The ICU locale used to select general-number formatting data.

Returns

A general-number formatter selected for inLocale.

Attributes

Remarks

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat. <hr> <strong>[icu]</strong> Returns a general-purpose number format for the specified locale.

Java documentation for android.icu.text.NumberFormat.getNumberInstance(android.icu.util.ULocale).

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

GetNumberInstance(Locale)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

[Android.Runtime.Register("getNumberInstance", "(Ljava/util/Locale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)]
public static Android.Icu.Text.NumberFormat? GetNumberInstance(Java.Util.Locale? inLocale);
[<Android.Runtime.Register("getNumberInstance", "(Ljava/util/Locale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)>]
static member GetNumberInstance : Java.Util.Locale -> Android.Icu.Text.NumberFormat

Parameters

inLocale
Locale

The Java locale converted to an ICU locale to select general-number formatting data.

Returns

A general-number formatter selected for the ICU equivalent of inLocale.

Attributes

Remarks

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat. <hr> Returns a general-purpose number format for the specified locale.

Java documentation for android.icu.text.NumberFormat.getNumberInstance(java.util.Locale).

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