Here you can find the source of fmtBdToInt(BigDecimal bd)
public static int fmtBdToInt(BigDecimal bd)
//package com.java2s; import java.math.BigDecimal; public class Main { public static int fmtBdToInt(BigDecimal bd) { if (bd == null) return 0; return bd.intValue(); }/*www .j a v a 2 s .c om*/ }