Searched refs:mNumerator (Results 1 – 2 of 2) sorted by relevance
23 private final int mNumerator; field in Rational45 mNumerator = numerator; in Rational()56 return mNumerator; in getNumerator()67 return mDenominator == 0 && mNumerator == 0; in isNaN()71 return mDenominator == 0 && mNumerator > 0; in isInf()75 return mDenominator == 0 && mNumerator < 0; in isNegInf()121 } else if (mNumerator == other.mNumerator && mDenominator == other.mDenominator) { in equals()127 int thisNumerator = mNumerator / thisGcd; in equals()130 int otherNumerator = other.mNumerator / otherGcd; in equals()148 return mNumerator + "/" + mDenominator; in toString()[all …]
25 private final long mNumerator; field in Rational35 mNumerator = nominator; in Rational()43 mNumerator = r.mNumerator; in Rational()51 return mNumerator; in getNumerator()66 return mNumerator / (double) mDenominator; in toDouble()79 return mNumerator == data.mNumerator && mDenominator == data.mDenominator; in equals()86 return mNumerator + "/" + mDenominator; in toString()