Returns a plain
BigDecimal
whose value is
this/rhs
, using fixed point arithmetic.
The same as {@link #divide(BigDecimal,int)}, where the BigDecimal
is rhs
, and the rounding mode is {@link MathContext#ROUND_HALF_UP}. The length of the decimal part (the scale) of the result will be the same as the scale of the current object, if the latter were formatted without exponential notation.
@param rhs The BigDecimal
for the right hand side ofthe division.
@return A plain BigDecimal
whose value isthis/rhs
, using fixed point arithmetic.
@throws ArithmeticException if rhs
is zero.
@stable ICU 2.0