List of utility methods to do Double Number Divide
double | divdivmin(double a, double b, double c, double d) divdivmin return div(a * b, c * d) * Math.min(c, d);
|
double | divergenceKL(double... a) divergence KL double result = 0.0; double mean = boundBelow(mean(a), 0.0); for (int i = 0; i < a.length; i++) { result += divergenceKL(a[i], mean); return result / a.length; |
double | divHex(double num) div Hex return 0.0625 * num;
|
Double | divide(Double a, Double b) divide if ((a == null) || (b == null) || (b.doubleValue() == 0.0)) { return null; return new Double(a.doubleValue() / b.doubleValue()); |
double | divide(double a, double b) divide return BigDecimal.valueOf(a).divide(BigDecimal.valueOf(b)).doubleValue();
|
Double | divide(Double a, Double b) divide BigDecimal bd1 = new BigDecimal(a.toString()); BigDecimal bd2 = new BigDecimal(b.toString()); return bd1.divide(bd2).doubleValue(); |
double | divide(double first, double second) Divide the first parameter by the second parameter int limit = 1; double sign = 1.0; if ((first > 0.0 && second < 0.0) || (first < 0.0 && second > 0.0)) { sign = -1.0; first = Math.abs(first); second = Math.abs(second); if (second >= 1.0 || first < second * 0.1 * Float.MAX_VALUE) { ... |
double | divide(double left, double right) divide if (right == 0L) { throw new ArithmeticException("Division by zero is undefined"); return left / right; |
Double | divide(Double numerator, Double denominator) Divides two double values, NPE save. if (numerator == null || denominator == null || denominator.equals(0.0)) { return null; } else if (numerator.equals(0.0)) { return 0d; } else { return numerator / denominator; |
double | divide(double v1, double v2) divide return divide(v1, v2, DEFAULT_DIV_SCALE);
|