question: public void testConstrBIScale ( ) { String a = "1231212478987482988429808779810457634781384756794987" ; BigInteger bA = new BigInteger ( a ) ; int aScale = 10 ; BigDecimal aNumber = new BigDecimal ( bA , aScale ) ; assertEquals ( "incorrect value" , bA , aNumber . unscaledValue ( ) ) ; assertEquals ( "incorrect scale" , aScale , aNumber . scale ( ) ) ; }
target:  new BigDecimal(BigInteger value, int scale)