Author: psteitz Date: Sat May 19 22:45:54 2007 New Revision: 539829 URL: http://svn.apache.org/viewvc?view=rev&rev=539829 Log: eliminated unnecessary Double creation.
Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java?view=diff&rev=539829&r1=539828&r2=539829 ============================================================================== --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java Sat May 19 22:45:54 2007 @@ -558,7 +558,7 @@ 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) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]