commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1209082 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java
Date Thu, 01 Dec 2011 13:55:05 GMT
Author: erans
Date: Thu Dec  1 13:55:04 2011
New Revision: 1209082

URL: http://svn.apache.org/viewvc?rev=1209082&view=rev
Log:
MATH-690
Replaced "sign" with "copySign".

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java?rev=1209082&r1=1209081&r2=1209082&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java
Thu Dec  1 13:55:04 2011
@@ -215,7 +215,7 @@ public class ProperFractionFormat extend
         int w = whole.intValue();
         int n = num.intValue();
         int d = den.intValue();
-        return new Fraction(((Math.abs(w) * d) + n) * MathUtils.sign(w), d);
+        return new Fraction(((Math.abs(w) * d) + n) * MathUtils.copySign(1, w), d);
     }
 
     /**



Mime
View raw message