语言

IntegerWidth.TruncateAt(Int32) 方法

定义

截断数字超过小数分隔符之前的一定数字数。

[Android.Runtime.Register("truncateAt", "(I)Landroid/icu/number/IntegerWidth;", "GetTruncateAt_IHandler", ApiSince=30)]
public virtual Android.Icu.Number.IntegerWidth? TruncateAt(int maxInt);
[<Android.Runtime.Register("truncateAt", "(I)Landroid/icu/number/IntegerWidth;", "GetTruncateAt_IHandler", ApiSince=30)>]
abstract member TruncateAt : int -> Android.Icu.Number.IntegerWidth
override this.TruncateAt : int -> Android.Icu.Number.IntegerWidth

参数

maxInt
Int32

小数分隔符前的最大位数。 maxInt == -1 表示不截断。

返回

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

特性

注解

截断数字超过小数分隔符之前的一定数字数。

例如,对于 maxInt=3,数字 1234 将打印为“234”。

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

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

适用于