Java Number Divide divideBy(Number number1, Number number2)

Here you can find the source of divideBy(Number number1, Number number2)

Description

divide By

License

Apache License

Declaration

public static double divideBy(Number number1, Number number2) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static double divideBy(Number number1, Number number2) {
        double n1 = 0;
        double n2 = 0;
        if (number1 != null) {
            n1 = number1.doubleValue();/*from w  ww . j  a v a2 s.c o  m*/
        }
        if (number2 != null) {
            n2 = number2.doubleValue();
        }
        return n1 / n2;
    }
}

Related

  1. divide(Number num1, Number num2)
  2. divide(Number numerator, Number denominator)
  3. divide(Number numerator, Number divisor)
  4. divideAndCeilWithBase(int number, int base)
  5. divideAndRoundDown(long number, long divisor)
  6. divideByRoundDown(Number number1, Number number2)
  7. division(Number numerator, Number denominator)
  8. divmod(byte[] number, int firstDigit, int base, int divisor)
  9. divmod256(byte[] number58, int startAt)