Here you can find the source of toDouble(BigDecimal bigDecimal)
public static double toDouble(BigDecimal bigDecimal)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static double toDouble(BigDecimal bigDecimal) { double result = 0.0; if (bigDecimal != null) { result = bigDecimal.doubleValue(); }/* w w w . j ava 2 s . com*/ return result; } }