Java.Math.BigDecimal.Round Method
Returns a new BigDecimal whose value is this, rounded according to the passed context mc.

Syntax

[Android.Runtime.Register("round", "(Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetRound_Ljava_math_MathContext_Handler")]
public virtual BigDecimal Round (MathContext mc)

Parameters

mc
rounding mode and precision for the result of this operation.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ArithmeticExceptionif mc.precision > 0 and mc.roundingMode == UNNECESSARY and this cannot be represented within the given precision.

Remarks

Returns a new BigDecimal whose value is this, rounded according to the passed context mc.

If mc.precision = 0, then no rounding is performed.

If mc.precision > 0 and mc.roundingMode == UNNECESSARY, then an ArithmeticException is thrown if the result cannot be represented exactly within the given precision.

[Android Documentation]

Requirements

Namespace: Java.Math
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1