Here you can find the source of divide(BigDecimal aValue1, BigDecimal aValue2, int scale)
public static BigDecimal divide(BigDecimal aValue1, BigDecimal aValue2, int scale)
//package com.java2s; import java.math.BigDecimal; public class Main { public static BigDecimal divide(BigDecimal aValue1, BigDecimal aValue2, int scale) { if (aValue1 == null || aValue2 == null) return null; return aValue1.divide(aValue2, scale, BigDecimal.ROUND_HALF_UP); }/*from w w w . j a v a 2 s .c o m*/ }