Here you can find the source of divide(BigDecimal one, BigDecimal another)
public static BigDecimal divide(BigDecimal one, BigDecimal another)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; import java.math.MathContext; import java.math.RoundingMode; public class Main { public static final MathContext _SCALE = new MathContext(100, RoundingMode.HALF_UP); public static BigDecimal divide(BigDecimal one, BigDecimal another) { return one.divide(another, _SCALE); }/*from ww w . j a va 2s .com*/ }