static public BigDecimal scalePrec ( final BigDecimal x , final MathContext mc ) { final int diffPr = mc . getPrecision ( ) - x . precision ( ) ; if ( diffPr > 0 ) { return scalePrec ( x , diffPr ) ; } else { return x ; } }
Boost the precision by appending decimal zeros to the value . This returns a value which appears to have a higher precision than the input .