From 0c9be1c546c70d8e48d3fc6f63a154e2843e9607 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Mon, 22 Jun 2009 18:42:11 +0000 Subject: [PATCH] fixed TWO_FIFTH value in both Fraction and BigFraction git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@787348 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/commons/math/fraction/BigFraction.java | 4 ++-- src/java/org/apache/commons/math/fraction/Fraction.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/commons/math/fraction/BigFraction.java b/src/java/org/apache/commons/math/fraction/BigFraction.java index 50cffd933..5089e4160 100644 --- a/src/java/org/apache/commons/math/fraction/BigFraction.java +++ b/src/java/org/apache/commons/math/fraction/BigFraction.java @@ -68,8 +68,8 @@ public class BigFraction extends Number implements FieldElement, Co /** A fraction representing "3/4". */ public static final BigFraction THREE_QUARTERS = new BigFraction(3, 4); - /** A fraction representing "4/5". */ - public static final BigFraction TWO_FIFTHS = new BigFraction(4, 5); + /** A fraction representing "2/5". */ + public static final BigFraction TWO_FIFTHS = new BigFraction(2, 5); /** A fraction representing "2/4". */ public static final BigFraction TWO_QUARTERS = new BigFraction(2, 4); diff --git a/src/java/org/apache/commons/math/fraction/Fraction.java b/src/java/org/apache/commons/math/fraction/Fraction.java index 9b452585f..bb2e28765 100644 --- a/src/java/org/apache/commons/math/fraction/Fraction.java +++ b/src/java/org/apache/commons/math/fraction/Fraction.java @@ -65,8 +65,8 @@ public class Fraction extends Number implements FieldElement, Comparab /** A fraction representing "3/4". */ public static final Fraction THREE_QUARTERS = new Fraction(3, 4); - /** A fraction representing "4/5". */ - public static final Fraction TWO_FIFTHS = new Fraction(4, 5); + /** A fraction representing "2/5". */ + public static final Fraction TWO_FIFTHS = new Fraction(2, 5); /** A fraction representing "2/4". */ public static final Fraction TWO_QUARTERS = new Fraction(2, 4);