round To Digit Position
fun roundToDigitPosition(digitPosition: Long, roundingMode: RoundingMode = this.roundingMode): BigDecimal
Round the BigDecimal to a specific length. If position is set to 0, a ArithmeticException is thrown. Use this for rounding when not using scale. I.e.
1234.5678 digitPosition 3, rounding mode HALF_TOWARDS_ZERO will produce 1230 123.456 digitPosition 3, rounding mode HALF_TOWARDS_ZERO will produce 123 0.0012345678 digitPosition 4, rounding mode HALF_TOWARDS_ZERO will produce 0.001 0.0012345678 digitPosition 6, rounding mode HALF_TOWARDS_ZERO will produce 0.00123