Here you can find the source of convertNumberToBigDecimal(Number aNumber)
public static BigDecimal convertNumberToBigDecimal(Number aNumber)
//package com.java2s; import java.math.BigDecimal; public class Main { public static BigDecimal convertNumberToBigDecimal(Number aNumber) { return new BigDecimal(aNumber.toString()); }//from w w w .j a v a 2 s .com }