Here you can find the source of string2BigDecimal(String aValue)
private static BigDecimal string2BigDecimal(String aValue)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { private static BigDecimal string2BigDecimal(String aValue) { if (aValue != null && aValue.trim().length() > 0) { return new BigDecimal(aValue); } else {/*from w w w.ja v a2s . com*/ return null; } } }