Here you can find the source of toSimpleBigDecimal(Object num)
public static BigDecimal toSimpleBigDecimal(Object num)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static BigDecimal toSimpleBigDecimal(Object num) { try {/*from w w w . java2 s . com*/ return num != null ? new BigDecimal(num.toString()) : null; } catch (Exception ignored) { } return null; } }