Udostępnij za pośrednictwem


NumberFormat.GetCurrencyInstance(Locale) Method

Definition

Returns a currency format for the specified locale.

[Android.Runtime.Register("getCurrencyInstance", "(Ljava/util/Locale;)Ljava/text/NumberFormat;", "")]
public static Java.Text.NumberFormat GetCurrencyInstance (Java.Util.Locale inLocale);
[<Android.Runtime.Register("getCurrencyInstance", "(Ljava/util/Locale;)Ljava/text/NumberFormat;", "")>]
static member GetCurrencyInstance : Java.Util.Locale -> Java.Text.NumberFormat

Parameters

inLocale
Locale

the desired locale

Returns

the NumberFormat instance for currency formatting

Attributes

Remarks

Returns a currency format for the specified locale.

If the specified locale contains the "cf" ( currency format style) Unicode extension, the returned currency format uses the style if it is available. Otherwise, the style uses the default "standard" currency format. For example, if the style designates "account", negative currency amounts use a pair of parentheses in some locales.

Java documentation for java.text.NumberFormat.getCurrencyInstance(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