Searched refs:mNumerator (Results 1 – 2 of 2) sorted by relevance
77 private final int mNumerator; field in Rational110 mNumerator = 1; // +Inf in Rational()113 mNumerator = -1; // -Inf in Rational()116 mNumerator = 0; // NaN in Rational()119 mNumerator = 0; in Rational()124 mNumerator = numerator / gcd; in Rational()136 return mNumerator; in getNumerator()161 return mDenominator == 0 && mNumerator == 0; in isNaN()173 return mNumerator != 0 && mDenominator == 0; in isInfinite()198 return isFinite() && mNumerator == 0; in isZero()[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()