Here you can find the source of parseBigDecimal(Object value)
public static BigDecimal parseBigDecimal(Object value)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static BigDecimal parseBigDecimal(Object value) { if (value == null || value.toString().isEmpty()) { return null; } else {/* w w w.j a va2 s . com*/ try { Double check = Double.parseDouble(value.toString()); return new BigDecimal(check); } catch (NumberFormatException e) { return null; } } } public static Double parseDouble(Object value) { if (value == null || value.toString().isEmpty()) { return null; } else { try { return Double.parseDouble(value.toString()); } catch (NumberFormatException e) { return null; } } } }