code: public static BigDecimal round(BigDecimal number, int precision) {
          return number.setScale(precision, RoundingMode.HALF_UP);
      }
docs: Round the value
  <p>
  Note that this method differs from {@link java.math.BigDecimal#round(java.math.MathContext)}
  which specifies the digits to retain starting from the leftmost nonzero
  digit. This method operates on the fractional part of the number and
  the precision argument specifies the number of digits to the right of
  the decimal point to retain.
  
  @param number a BigDecimal
  @param precision the number of decimal places to keep
  @return a BigDecimal rounded to the number of decimal places specified by precision
  @see #round(java.math.BigDecimal)
  @see java.math.BigDecimal#round(java.math.MathContext)
  @since 2.5.0