Here you can find the source of fmtBdToString(BigDecimal bd, DecimalFormat df)
public static String fmtBdToString(BigDecimal bd, DecimalFormat df)
//package com.java2s; import java.math.BigDecimal; import java.text.DecimalFormat; public class Main { public static String fmtBdToString(BigDecimal bd, DecimalFormat df) { if (bd == null) return ""; return df.format(bd.doubleValue()); }/*w w w. j a va 2 s . c o m*/ }