Here you can find the source of parseBigDecimal(Object obj)
public static BigDecimal parseBigDecimal(Object obj)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static BigDecimal parseBigDecimal(Object obj) { BigDecimal value = BigDecimal.ZERO; if (obj != null) { try { value = new BigDecimal(obj.toString()); } catch (Exception var3) { value = BigDecimal.ZERO; }//from w w w. j av a2s .co m } return value; } }