Here you can find the source of toBigDecimal(String str)
public static BigDecimal toBigDecimal(String str)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static BigDecimal toBigDecimal(String str) { if (str == null || str.isEmpty()) { return null; }/* www . ja v a 2s. c o m*/ return new BigDecimal(str); } }