Searched refs:mDenominator (Results 1 – 2 of 2) sorted by relevance
78 private final int mDenominator; field in Rational111 mDenominator = 0; in Rational()114 mDenominator = 0; in Rational()117 mDenominator = 0; in Rational()120 mDenominator = 1; in Rational()125 mDenominator = denominator / gcd; in Rational()149 return mDenominator; in getDenominator()161 return mDenominator == 0 && mNumerator == 0; in isNaN()173 return mNumerator != 0 && mDenominator == 0; in isInfinite()186 return mDenominator != 0; in isFinite()[all …]
26 private final long mDenominator; field in Rational36 mDenominator = denominator; in Rational()44 mDenominator = r.mDenominator; in Rational()58 return mDenominator; in getDenominator()66 return mNumerator / (double) mDenominator; in toDouble()79 return mNumerator == data.mNumerator && mDenominator == data.mDenominator; in equals()86 return mNumerator + "/" + mDenominator; in toString()