Home | History | Annotate | Download | only in python2.7

Lines Matching refs:_numerator

65     __slots__ = ('_numerator', '_denominator')
103 self._numerator = numerator.numerator
110 self._numerator = value._numerator
116 self._numerator = value._numerator
164 self._numerator = numerator // g
244 n, d = self._numerator, self._denominator
263 return a._numerator
271 return ('Fraction(%s, %s)' % (self._numerator, self._denominator))
276 return str(self._numerator)
278 return '%s/%s' % (self._numerator, self._denominator)
463 return Fraction(a._numerator ** power,
467 a._numerator ** -power)
477 if b._denominator == 1 and b._numerator >= 0:
479 return a ** b._numerator
485 return a ** b._numerator
491 return Fraction(a._numerator, a._denominator)
495 return Fraction(-a._numerator, a._denominator)
499 return Fraction(abs(a._numerator), a._denominator)
503 if a._numerator < 0:
504 return -(-a._numerator // a._denominator)
506 return a._numerator // a._denominator
518 return hash(self._numerator)
525 return hash((self._numerator, self._denominator))
530 return (a._numerator == b.numerator and
558 return op(self._numerator * other.denominator,
590 return a._numerator != 0
600 return self.__class__(self._numerator, self._denominator)
605 return self.__class__(self._numerator, self._denominator)