JavaMoney/javamoney — pull request #2 by clanie (2013-01-17 11:45:22+00:00)
Title: Fix imprecise division functions in BigDecimalAmount.

BigDecimalAmount.divideAndRemainder(MonetaryAmount) and divideToIntegralValue(MonetaryAmount) both unnecessary convert the divisor from BigDecimal to double and back again, potentially loosing some precision.
The 1st commit adds tests showing this. The 2nd fixes it.