diff --git a/src/java/org/apache/commons/math/util/MathUtils.java b/src/java/org/apache/commons/math/util/MathUtils.java index 3b63c8759..b6e99e1a9 100644 --- a/src/java/org/apache/commons/math/util/MathUtils.java +++ b/src/java/org/apache/commons/math/util/MathUtils.java @@ -558,7 +558,7 @@ public final class MathUtils { public static double round(double x, int scale, int roundingMethod) { try { return (new BigDecimal - (new Double(x).toString()) + (Double.toString(x)) .setScale(scale, roundingMethod)) .doubleValue(); } catch (NumberFormatException ex) {