BigDecimal.Round(MathContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據設定BigDecimal回傳四MathContext捨五入。
[Android.Runtime.Register("round", "(Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetRound_Ljava_math_MathContext_Handler")]
public virtual Java.Math.BigDecimal? Round(Java.Math.MathContext? mc);
[<Android.Runtime.Register("round", "(Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetRound_Ljava_math_MathContext_Handler")>]
abstract member Round : Java.Math.MathContext -> Java.Math.BigDecimal
override this.Round : Java.Math.MathContext -> Java.Math.BigDecimal
參數
- mc
- MathContext
需要說明的背景。
傳回
BigDecimal A 依設定四MathContext捨五入。
- 屬性
例外狀況
若 mc.precision > 0 和 mc.roundingMode ==
UNNECESSARY ,則無法在給定精度內表示。
備註
的 java.math.BigDecimal.round(java.math.MathContext)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。