Language

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() セッターに渡す IntegerWidth。

属性

注釈

小数点区切り記号の前に、特定の数の数字を超える数値を切り捨てます。

たとえば、maxInt=3 の場合、数値 1234 は "234" として出力されます。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象