@Test public void testDegugging() { Assert.assertEquals(Double.valueOf(46.67d), Double.valueOf(0d + 46.67d)); Assert.assertEquals(Double.valueOf(46.67d), Double.valueOf(Math.abs(0d + 46.67d))); Assert.assertEquals(Double.valueOf(46.67d), Double.valueOf(Math.abs(46.67d + 0d))); Assert.assertEquals(Double.valueOf(25.32d), Double.valueOf(NumberUtils.round(46.67d + -21.35d))); }
public static double round(double nonRounded) { return ((double) (Math.round(nonRounded * 100))) / 100; }
NumberUtils { public static double round(double nonRounded) { return ((double) (Math.round(nonRounded * 100))) / 100; } }
NumberUtils { public static double round(double nonRounded) { return ((double) (Math.round(nonRounded * 100))) / 100; }  }
NumberUtils { public static double round(double nonRounded) { return ((double) (Math.round(nonRounded * 100))) / 100; }  static Double neg(Double value); static Double getStringToDoubleNonRounded(Locale locale,
                                                     String stringToBeParsed); static Double getStringToDoubleRounded(Locale locale,
            String stringToBeParsed); static Double divide(Double dividend, Integer divisor); static DivisionResult divideWithLoss(Double dividend,
            Integer divisor, boolean resultToBeNegative); static Double multiply(Double factorA, Integer factorB); static Double multiply(Double factorA, Double factorB); static Double divide(Double dividend, Double divisor); static Double divideForExchangeRates(Double dividend, Double divisor); static Double ensureExchangeRateMinMax(Double double1); static Double ensureAmountMinMax(Double double1); static boolean isExceedingAmountLimit(Double double1); static Double invertExchangeRateDouble(Double exchangeRate); static Double divide(Double dividend, Double divisor, int scale); static double round(double nonRounded); }
NumberUtils { public static double round(double nonRounded) { return ((double) (Math.round(nonRounded * 100))) / 100; }  static Double neg(Double value); static Double getStringToDoubleNonRounded(Locale locale,
                                                     String stringToBeParsed); static Double getStringToDoubleRounded(Locale locale,
            String stringToBeParsed); static Double divide(Double dividend, Integer divisor); static DivisionResult divideWithLoss(Double dividend,
            Integer divisor, boolean resultToBeNegative); static Double multiply(Double factorA, Integer factorB); static Double multiply(Double factorA, Double factorB); static Double divide(Double dividend, Double divisor); static Double divideForExchangeRates(Double dividend, Double divisor); static Double ensureExchangeRateMinMax(Double double1); static Double ensureAmountMinMax(Double double1); static boolean isExceedingAmountLimit(Double double1); static Double invertExchangeRateDouble(Double exchangeRate); static Double divide(Double dividend, Double divisor, int scale); static double round(double nonRounded);  }