question: public void test_DivideBigDecimalRoundingModeHALF_DOWN ( ) { String a = "3736186567876876578956958765675671119238118911893939591735" ; int aScale = 5 ; String b = "74723342238476237823787879183470" ; int bScale = 15 ; int newScale = 7 ; RoundingMode rm = RoundingMode . HALF_DOWN ; String c = "500002603731642864013619132621009722.1803810" ; BigDecimal aNumber = new BigDecimal ( new BigInteger ( a ) , aScale ) ; BigDecimal bNumber = new BigDecimal ( new BigInteger ( b ) , bScale ) ; BigDecimal result = aNumber . divide ( bNumber , newScale , rm ) ; assertEquals ( "incorrect value" , c , result . toString ( ) ) ; assertEquals ( "incorrect scale" , newScale , result . scale ( ) ) ; }
target:  java.math.BigDecimal#divide(java.math.BigDecimal, java.math.RoundingMode) divide(BigDecimal, RoundingMode)