From 149e1179d3f0dca862a3ce416bc5d9bf5e511fa6 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Thu, 1 Dec 2011 13:55:04 +0000 Subject: [PATCH] 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 --- .../org/apache/commons/math/fraction/ProperFractionFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java b/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java index 903733bc9..f25184bc8 100644 --- a/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java +++ b/src/main/java/org/apache/commons/math/fraction/ProperFractionFormat.java @@ -215,7 +215,7 @@ public class ProperFractionFormat extends FractionFormat { 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); } /**