Condividi tramite


NumberFormat.GetIntegerInstance(Locale) Method

Definition

Returns an integer number format for the specified locale.

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

Parameters

inLocale
Locale

the desired locale

Returns

a number format for integer values

Attributes

Remarks

Returns an integer number format for the specified locale. The returned number format is configured to round floating point numbers to the nearest integer using half-even rounding (see java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN) for formatting, and to parse only the integer part of an input string (see #isParseIntegerOnly isParseIntegerOnly).

Added in 1.4.

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