Searched refs:_denominator (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython2/Lib/ |
D | fractions.py | 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) [all …]
|
/external/python/cpython3/Lib/ |
D | fractions.py | 120 self._denominator = 1 125 self._denominator = numerator.denominator 130 self._numerator, self._denominator = numerator.as_integer_ratio() 190 self._denominator = denominator 253 if self._denominator <= max_denominator: 257 n, d = self._numerator, self._denominator 280 return a._denominator 285 self._numerator, self._denominator) 289 if self._denominator == 1: 292 return '%s/%s' % (self._numerator, self._denominator) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_fractions.py | 67 self.den == other._denominator) 72 return(self.num * other._denominator < self.den * other._numerator) 75 return(self.num * other._denominator > self.den * other._numerator) 78 return(self.num * other._denominator <= self.den * other._numerator) 81 return(self.num * other._denominator >= self.den * other._numerator) 244 r._denominator = 2
|
/external/python/cpython3/Lib/test/ |
D | test_fractions.py | 60 self.den == other._denominator) 65 return(self.num * other._denominator < self.den * other._numerator) 68 return(self.num * other._denominator > self.den * other._numerator) 71 return(self.num * other._denominator <= self.den * other._numerator) 74 return(self.num * other._denominator >= self.den * other._numerator) 243 r._denominator = 2
|
/external/icu/icu4c/source/i18n/ |
D | nfsubs.cpp | 277 double _denominator, in NumeratorSubstitution() argument 281 : NFSubstitution(_pos, _ruleSet, fixdesc(description), status), denominator(_denominator) in NumeratorSubstitution()
|