code: public static BigDecimal sround(BigDecimal b0, int b1) {
  		return b0.movePointRight(b1)
  			.setScale(0, RoundingMode.HALF_UP).movePointLeft(b1);
  	}
docs: SQL <code>ROUND</code> operator applied to BigDecimal values.