Here you can find the source of isZero(BigDecimal d)
public static Boolean isZero(BigDecimal d)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static Boolean isZero(BigDecimal d) { return d.equals(BigDecimal.ZERO); }/* www . ja v a 2s. c om*/ }