Java Double Number Divide divideDouble(double first, double second)

Here you can find the source of divideDouble(double first, double second)

Description

divide Double

License

Open Source License

Declaration

public static double divideDouble(double first, double second) 

Method Source Code


//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
}

Related

  1. divide(String num1, String num2, int scale)
  2. divide(String num1, String num2, int scale)
  3. divide(String thisVal, String addVal)
  4. divide4Money(Double value1, Double value2)
  5. divideComplex(double realOne, double imagOne, double realTwo, double imagTwo)
  6. divideDouble(double first, double second, int scale, int roundingMode)
  7. divideInts(int numerator, int denominator)
  8. divideNumber(Object divisor, Object dividend)
  9. divZ(double z)