MATH-690
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:
parent
5922c5966b
commit
149e1179d3
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue