Here you can find the source of getBigDecimal(String aInput)
public static BigDecimal getBigDecimal(String aInput)
//package com.java2s; import java.math.BigDecimal; public class Main { public static final BigDecimal BLANK_DECIMAL = new BigDecimal(-99999); public static BigDecimal getBigDecimal(String aInput) { return getBigDecimal(aInput, BLANK_DECIMAL); }//from w w w . j a va 2 s .com public static BigDecimal getBigDecimal(String aInput, BigDecimal aDefaultValue) { try { return new BigDecimal(aInput); } catch (Exception e) { return aDefaultValue; } } }