question: public void testDivideExpEqualsZero ( ) { String a = "1231212478987482988429808779810457634781384756794987" ; int aScale = - 15 ; String b = "747233429293018787918347987234564568" ; int bScale = 10 ; String c = "1.64769459009933764189139568605273529E+40" ; 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: local variable exponent is equal to zero