Language

BigDecimal.Round(MathContext) メソッド

定義

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の設定に従って丸められたMathContext。

属性

例外

mc.precision > 0とmc.roundingMode == UNNECESSARYの場合、これは指定された有効桁数内で表すことができません。

注釈

Javaドキュメント。

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

適用対象