Here you can find the source of strValueBigDecimal(Number number)
public static BigDecimal strValueBigDecimal(Number number)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static BigDecimal strValueBigDecimal(Number number) { if (number == null) { return zeroBigDecimal(); }/*w w w . j a v a 2 s . co m*/ return new BigDecimal(String.valueOf(number)); } public static BigDecimal zeroBigDecimal() { return new BigDecimal("0.00"); } }