question: public void testUlpPos ( ) { String a = "3736186567876876578956958765675671119238118911893939591735" ; int aScale = - 45 ; BigDecimal aNumber = new BigDecimal ( new BigInteger ( a ) , aScale ) ; BigDecimal result = aNumber . ulp ( ) ; String res = "1E+45" ; int resScale = - 45 ; assertEquals ( "incorrect value" , res , result . toString ( ) ) ; assertEquals ( "incorrect scale" , resScale , result . scale ( ) ) ; }
target:  ulp() of a positive BigDecimal