public BigDecimal round (MathContext mc)

Returns a BigDecimal rounded according to the MathContext settings. If the precision setting is 0 then no rounding takes place.

The effect of this method is identical to that of the plus(MathContext) method.

Parameters:
mc    the context to use.

Returns:  a BigDecimal rounded according to the MathContext settings.

Exceptions:
ArithmeticException    if the rounding mode is UNNECESSARY and the BigDecimal operation would require rounding.

See also:
plus(MathContext)

Since:  1.5