Here you can find the source of Str2BigDecimal(String a)
public static BigDecimal Str2BigDecimal(String a)
//package com.java2s; import java.math.BigDecimal; public class Main { public static BigDecimal Str2BigDecimal(String a) { try {/*from ww w . jav a 2 s. co m*/ return (new BigDecimal(a)); } catch (Exception e) { return BigDecimal.valueOf(0); } } }