Here you can find the source of divideDouble(double first, double second)
public static double divideDouble(double first, double second)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static double divideDouble(double first, double second) { BigDecimal b1 = new BigDecimal(first); BigDecimal b2 = new BigDecimal(second); return b1.divide(b2).doubleValue(); }//from w w w .j a v a 2 s . co m }