Searched refs:mNumerator (Results 1 – 2 of 2) sorted by relevance
80 private final int mNumerator; field in Rational114 mNumerator = 1; // +Inf in Rational()117 mNumerator = -1; // -Inf in Rational()120 mNumerator = 0; // NaN in Rational()123 mNumerator = 0; in Rational()128 mNumerator = numerator / gcd; in Rational()140 return mNumerator; in getNumerator()165 return mDenominator == 0 && mNumerator == 0; in isNaN()177 return mNumerator != 0 && mDenominator == 0; in isInfinite()202 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()