語言

IntegerWidth.ZeroFillTo(Int32) 方法

定義

在開頭用零填充數字,以確保小數分隔符前有一定數量的數字。

[Android.Runtime.Register("zeroFillTo", "(I)Landroid/icu/number/IntegerWidth;", "", ApiSince=30)]
public static Android.Icu.Number.IntegerWidth? ZeroFillTo(int minInt);
[<Android.Runtime.Register("zeroFillTo", "(I)Landroid/icu/number/IntegerWidth;", "", ApiSince=30)>]
static member ZeroFillTo : int -> Android.Icu.Number.IntegerWidth

參數

minInt
Int32

小數分隔符前的最少格數。

傳回

一個 IntegerWidth,用於鏈接或傳遞給 NumberFormatter 的 integerWidth() 設定器。

屬性

備註

在開頭用零填充數字,以確保小數分隔符前有一定數量的數字。

例如,當 minInt=3 時,數字 55 會被印成「055」。

Java 文件 android.icu.number.IntegerWidth.zeroFillTo(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於