NumberFormat.RoundingMode 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳此數字格式中使用的四捨五入模式。 -或- 設定此數字格式中使用的四捨五入模式。
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 所創建與分享的作品,並依授權條款所描述的使用進行修改。