question: public void testCompareLessScale2 ( ) { String a = "12380964839238475457356735674573" ; int aScale = 36 ; String b = "45735635948573894578349572001798379183767890295784902768787678287" ; int bScale = 48 ; BigDecimal aNumber = new BigDecimal ( new BigInteger ( a ) , aScale ) ; BigDecimal bNumber = new BigDecimal ( new BigInteger ( b ) , bScale ) ; int result = - 1 ; assertEquals ( "incorrect result" , result , aNumber . compareTo ( bNumber ) ) ; }
target:  Compare to a number of an less scale