Here you can find the source of getBigDecimal(BigDecimal bigDecimal)
public static String getBigDecimal(BigDecimal bigDecimal)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static String getBigDecimal(BigDecimal bigDecimal) { if (bigDecimal == null) return "0"; return bigDecimal.toString(); }/*from w w w.j av a 2 s. com*/ }