Lines Matching refs:other
81 * <p>A Rational object can only be equal to another Rational object (comparing against any other
112 Rational other = (Rational) obj;
113 if (mDenominator == 0 || other.mDenominator == 0) {
114 if (isNaN() && other.isNaN()) {
116 } else if (isInf() && other.isInf() || isNegInf() && other.isNegInf()) {
121 } else if (mNumerator == other.mNumerator && mDenominator == other.mDenominator) {
125 int otherGcd = other.gcd();
130 int otherNumerator = other.mNumerator / otherGcd;
131 int otherDenominator = other.mDenominator / otherGcd;