Here you can find the source of toBigDecimal(String _str)
public static BigDecimal toBigDecimal(String _str)
//package com.java2s; import java.math.BigDecimal; public class Main { public static BigDecimal toBigDecimal(String _str) { BigDecimal bd = null;//from w w w .j ava 2 s . co m if (_str != null) { try { bd = new BigDecimal(_str); } catch (Exception e) { return null; } } return bd; } }