Here you can find the source of parseBigDecimal(String data)
public static BigDecimal parseBigDecimal(String data)
//package com.java2s; import java.math.BigDecimal; public class Main { public static BigDecimal parseBigDecimal(String data) { if (data == null) { return null; }//from w w w . j av a 2 s.com try { return new BigDecimal(data); } catch (NumberFormatException e) { return null; } } }