class NumberUtils {

    public static Double divideForExchangeRates(Double dividend, Double divisor) {
        Double double1 =
                (Double.valueOf(0d).equals(divisor)) ?
                        Double.valueOf(0d) :
                        divide(dividend, divisor, 10);
        return ensureExchangeRateMinMax(double1);
    }

}