diff --git a/projects/Lang/49/org/apache/commons/lang/math/Fraction.java b/projects/Lang/49/org/apache/commons/lang/math/Fraction.java index 5f8e565..3347689 100644 --- a/projects/Lang/49/org/apache/commons/lang/math/Fraction.java +++ b/projects/Lang/49/org/apache/commons/lang/math/Fraction.java @@ -463,6 +463,9 @@ public double doubleValue() { * @return a new reduced fraction instance, or this if no simplification possible */ public Fraction reduce() { + if (numerator == 0) { + return equals(ZERO) ? this : ZERO; + } int gcd = greatestCommonDivisor(Math.abs(numerator), denominator); if (gcd == 1) { return this;