question: public void testDivideRemainderIsZero ( ) { String a = "8311389578904553209874735431110" ; int aScale = - 15 ; String b = "237468273682987234567849583746" ; int bScale = 20 ; String c = "3.5000000000000000000000000000000E+36" ; int resScale = - 5 ; BigDecimal aNumber = new BigDecimal ( new BigInteger ( a ) , aScale ) ; BigDecimal bNumber = new BigDecimal ( new BigInteger ( b ) , bScale ) ; BigDecimal result = aNumber . divide ( bNumber , resScale , BigDecimal . ROUND_CEILING ) ; assertEquals ( "incorrect value" , c , result . toString ( ) ) ; assertEquals ( "incorrect scale" , resScale , result . scale ( ) ) ; }
target:  Divide: remainder is zero