code: public BigDecimal toBigDecimal(int scale, Rounding roundingMode) {
          return toBigDecimal(scale, roundingMode, getProperties().hasStripTrailingZeros());
      }
docs: Return BigDecimal in defined scale with specified rounding mode. Use strip trailing zeros from properties
  
  @param scale
  @param roundingMode
  @return BigDecimal