Lines Matching refs:_denominator
104 self._denominator = numerator.denominator
111 self._denominator = value._denominator
117 self._denominator = value._denominator
165 self._denominator = denominator // g
240 if self._denominator <= max_denominator:
244 n, d = self._numerator, self._denominator
267 return a._denominator
271 return ('Fraction(%s, %s)' % (self._numerator, self._denominator))
275 if self._denominator == 1:
278 return '%s/%s' % (self._numerator, self._denominator)
464 a._denominator ** power)
466 return Fraction(a._denominator ** -power,
477 if b._denominator == 1 and b._numerator >= 0:
484 if b._denominator == 1:
491 return Fraction(a._numerator, a._denominator)
495 return Fraction(-a._numerator, a._denominator)
499 return Fraction(abs(a._numerator), a._denominator)
504 return -(-a._numerator // a._denominator)
506 return a._numerator // a._denominator
516 if self._denominator == 1:
525 return hash((self._numerator, self._denominator))
531 a._denominator == b.denominator)
559 self._denominator * other.numerator)
600 return self.__class__(self._numerator, self._denominator)
605 return self.__class__(self._numerator, self._denominator)