nd4j-common/src/main/java/org/nd4j/linalg/util/BigDecimalMath.java
static public BigDecimal scalePrec(final BigDecimal x, int d) {
        return x.setScale(d + x.scale());


    }
static public BigDecimal scalePrec(final BigDecimal x, int d) {
        return x.setScale(d + x.scale());


    }
Append decimal zeros to the value. This returns a value which appears to have
a higher precision than the input.

@param x The input value
@param d The (positive) value of zeros to be added as least significant digits.
@return The same value as the input but with increased (pseudo) precision.