Here you can find the source of toBig(Object o)
public static BigDecimal toBig(Object o)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static BigDecimal toBig(Object o) { if (o == null || o.toString().equals("") || o.toString().equals("NaN")) { return new BigDecimal(0); }//from ww w . j a v a 2 s. c o m return new BigDecimal(o.toString()); } }