Replaced "sign" with "copySign".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1209082 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2011-12-01 13:55:04 +00:00
parent 5922c5966b
commit 149e1179d3
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ public class ProperFractionFormat extends FractionFormat {
int w = whole.intValue(); int w = whole.intValue();
int n = num.intValue(); int n = num.intValue();
int d = den.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);
} }
/** /**