Here you can find the source of equalsBigDecimal(BigDecimal bd1, BigDecimal bd2)
public static boolean equalsBigDecimal(BigDecimal bd1, BigDecimal bd2)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static boolean equalsBigDecimal(BigDecimal bd1, BigDecimal bd2) { if (bd1.compareTo(bd2) == 0) { return true; } else {/*from ww w. ja va 2s . co m*/ return false; } } }