語言

NumberFormat.RoundingMode 屬性

定義

回傳此數字格式中使用的四捨五入模式。 -或- 設定此數字格式中使用的四捨五入模式。

public virtual Android.Icu.Math.RoundOptions RoundingMode { [Android.Runtime.Register("getRoundingMode", "()I", "GetGetRoundingModeHandler", ApiSince=24)] get; [Android.Runtime.Register("setRoundingMode", "(I)V", "GetSetRoundingMode_IHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getRoundingMode", "()I", "GetGetRoundingModeHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setRoundingMode", "(I)V", "GetSetRoundingMode_IHandler", ApiSince=24)>]
member this.RoundingMode : Android.Icu.Math.RoundOptions with get, set

屬性值

一個四捨五入模式,介於 BigDecimal.ROUND_UP 和 BigDecimal.ROUND_UNNECESSARY之間。

屬性

備註

財產取得者文件:

回傳此數字格式中使用的四捨五入模式。 NumberFormat 中 tis 方法的預設實作總是拋 UnsupportedOperationException出 。

Java 文件 android.icu.text.NumberFormat.getRoundingMode()。

屬性設定文件:

在此數字格式中使用的四捨五入模式。 NumberFormat 中 tis 方法的預設實作總是拋 UnsupportedOperationException出 。

Java 文件 android.icu.text.NumberFormat.setRoundingMode(int)。

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

適用於