IntegerWidth.TruncateAt(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
截断数字超过小数分隔符之前的一定数字数。
[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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。