question: public void testAbsMathContextPos ( ) { String a = "123809648392384754573567356745735.63567890295784902768787678287E+21" ; BigDecimal aNumber = new BigDecimal ( a ) ; int precision = 41 ; RoundingMode rm = RoundingMode . HALF_EVEN ; MathContext mc = new MathContext ( precision , rm ) ; String result = "1.2380964839238475457356735674573563567890E+53" ; int resScale = - 13 ; BigDecimal res = aNumber . abs ( mc ) ; assertEquals ( "incorrect value" , result , res . toString ( ) ) ; assertEquals ( "incorrect scale" , resScale , res . scale ( ) ) ; }
target:  Abs(MathContext) of a positive BigDecimal