语言

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

小数分隔符之前的最小位数。

返回

用于链接或传递给 NumberFormatter integerWidth() setter 的 IntegerWidth。

特性

注解

以零开头填充数字,以确保小数分隔符之前有一定数量的数字。

例如,对于 minInt=3,数字 55 将打印为“055”。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于