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.
mc | the context to use. |
BigDecimal
rounded according to the
MathContext
settings.
ArithmeticException | if the rounding mode is
UNNECESSARY and the
BigDecimal operation would require rounding. |
plus(MathContext)
Diagram: BigInteger, BigDecimal