NumberFormat.GetIntegerInstance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetIntegerInstance(ULocale) |
<strong>NOTE:</strong> New users are strongly encouraged to use
|
GetIntegerInstance(Locale) |
<strong>NOTE:</strong> New users are strongly encouraged to use
|
GetIntegerInstance(ULocale)
<strong>NOTE:</strong> New users are strongly encouraged to use
NumberFormatter
instead of NumberFormat.
[Android.Runtime.Register("getIntegerInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)]
public static Android.Icu.Text.NumberFormat? GetIntegerInstance (Android.Icu.Util.ULocale? inLocale);
[<Android.Runtime.Register("getIntegerInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)>]
static member GetIntegerInstance : Android.Icu.Util.ULocale -> Android.Icu.Text.NumberFormat
Parameters
- inLocale
- ULocale
the locale for which a number format is needed
Returns
a number format for integer values
- Attributes
Remarks
<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter
instead of NumberFormat. <hr> <strong>[icu]</strong> 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 IEEE half-even rounding (see android.icu.math.BigDecimal#ROUND_HALF_EVEN ROUND_HALF_EVEN
) for formatting, and to parse only the integer part of an input string (see #isParseIntegerOnly isParseIntegerOnly
).
Java documentation for android.icu.text.NumberFormat.getIntegerInstance(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
GetIntegerInstance(Locale)
<strong>NOTE:</strong> New users are strongly encouraged to use
NumberFormatter
instead of NumberFormat.
[Android.Runtime.Register("getIntegerInstance", "(Ljava/util/Locale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)]
public static Android.Icu.Text.NumberFormat? GetIntegerInstance (Java.Util.Locale? inLocale);
[<Android.Runtime.Register("getIntegerInstance", "(Ljava/util/Locale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)>]
static member GetIntegerInstance : Java.Util.Locale -> Android.Icu.Text.NumberFormat
Parameters
- inLocale
- Locale
the locale for which a number format is needed
Returns
a number format for integer values
- Attributes
Remarks
<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter
instead of NumberFormat. <hr> 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 IEEE half-even rounding (see android.icu.math.BigDecimal#ROUND_HALF_EVEN ROUND_HALF_EVEN
) for formatting, and to parse only the integer part of an input string (see #isParseIntegerOnly isParseIntegerOnly
).
Java documentation for android.icu.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.