diff --git a/src/main/java/org/apache/commons/math/util/BigReal.java b/src/main/java/org/apache/commons/math/util/BigReal.java index d4a74b138..65510242e 100644 --- a/src/main/java/org/apache/commons/math/util/BigReal.java +++ b/src/main/java/org/apache/commons/math/util/BigReal.java @@ -267,9 +267,9 @@ public class BigReal implements FieldElement, Comparable, Seri if (this == other){ return true; } - + if (other instanceof BigReal){ - return d.equals(((BigReal) other).d); + return d.equals(((BigReal) other).d); } return false; }