Here you can find the source of convertDoubleToBigDecimal(Double value)
public static BigDecimal convertDoubleToBigDecimal(Double value)
//package com.java2s; import java.math.BigDecimal; public class Main { public static BigDecimal convertDoubleToBigDecimal(Double value) { return new BigDecimal(Math.round(value)); }/* www. jav a2s . co m*/ }