Here you can find the source of decimalDivide(BigDecimal cs, BigDecimal bcs, int scale)
public static BigDecimal decimalDivide(BigDecimal cs, BigDecimal bcs, int scale)
//package com.java2s; import java.math.BigDecimal; public class Main { public static BigDecimal decimalDivide(BigDecimal cs, BigDecimal bcs, int scale) { return cs.divide(bcs, scale, BigDecimal.ROUND_HALF_UP); }//w ww . j a va 2s . com }