NumberFormat.GetIntegerInstance 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetIntegerInstance(ULocale) |
<強力>注意:</強力> 強烈建議新手使用 |
| GetIntegerInstance(Locale) |
<強力>注意:</強力> 強烈建議新手使用 |
GetIntegerInstance(ULocale)
<強力>注意:</強力> 強烈建議新手使用 NumberFormatter NumberFormat代替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
參數
- inLocale
- ULocale
需要數字格式的地點
傳回
整數值的數字格式
- 屬性
備註
<強力>注意:</強力> 強烈建議新手使用 NumberFormatter NumberFormat代替NumberFormat。
<hr><strong>[icu]</strong> 回傳指定地點的整數格式。 回傳的數字格式配置為將浮點數四捨五入至最近的整數,使用 IEEE 半偶數四捨五入(見 android.icu.math.BigDecimal#ROUND_HALF_EVEN ROUND_HALF_EVEN)格式化,並僅解析輸入字串的整數部分(參見 #isParseIntegerOnly isParseIntegerOnly)。
Java 文件 android.icu.text.NumberFormat.getIntegerInstance(android.icu.util.ULocale)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
GetIntegerInstance(Locale)
<強力>注意:</強力> 強烈建議新手使用 NumberFormatter NumberFormat代替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
參數
- inLocale
- Locale
需要數字格式的地點
傳回
整數值的數字格式
- 屬性
備註
<強力>注意:</強力> 強烈建議新手使用 NumberFormatter NumberFormat代替NumberFormat。
<hr> 回傳指定地點的整數格式。 回傳的數字格式配置為將浮點數四捨五入至最近的整數,使用 IEEE 半偶數四捨五入(見 android.icu.math.BigDecimal#ROUND_HALF_EVEN ROUND_HALF_EVEN)格式化,並僅解析輸入字串的整數部分(參見 #isParseIntegerOnly isParseIntegerOnly)。
Java 文件 android.icu.text.NumberFormat.getIntegerInstance(java.util.Locale)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。