• Home
  • Raw
  • Download

Lines Matching refs:Decimal

509 class Decimal(object):  class
593 if isinstance(value, Decimal):
659 value = Decimal.from_float(value)
708 if cls is Decimal:
937 return Decimal(self._cmp(other))
1127 ans = Decimal(self)
1174 return Decimal(self)
1176 return Decimal(other) # Can't both be infinity here
1235 ans = Decimal(result)
1525 ans = Decimal(self)
1637 return Decimal(0)
1655 return Decimal(self)
1673 return Decimal(self)
1686 return Decimal(self)
1747 return Decimal(self)
2551 return Decimal(self) # if both are inf, it is OK
2620 return Decimal(self)
2655 return Decimal(self)
2679 return Decimal(self)
2681 return Decimal(self)
2704 return Decimal(self)
2706 return Decimal(self)
2724 return Decimal(self)
3053 return Decimal(self)
3295 ans = Decimal(self._exp + len(self._int) - 1)
3346 ans = Decimal(self.adjusted())
3630 return Decimal(10)
3649 return Decimal(self)
3684 return Decimal(self)
3707 return Decimal(self)
3733 if type(self) is Decimal:
3738 if type(self) is Decimal:
3834 self = object.__new__(Decimal)
3845 _numbers.Number.register(Decimal)
4101 d = Decimal(num, context=self)
4121 d = Decimal.from_float(f) # An exact conversion
4179 if not isinstance(a, Decimal):
4315 return Decimal(a)
4491 if not isinstance(a, Decimal):
5281 return Decimal(10)
5621 elif isinstance(value, Decimal):
6019 if isinstance(other, Decimal):
6022 return Decimal(other)
6024 return Decimal.from_float(other)
6037 if isinstance(other, Decimal):
6049 return self, Decimal(other.numerator)
6063 return self, Decimal.from_float(other)
6389 _Infinity = Decimal('Inf')
6390 _NegativeInfinity = Decimal('-Inf')
6391 _NaN = Decimal('NaN')
6392 _Zero = Decimal(0)
6393 _One = Decimal(1)
6394 _NegativeOne = Decimal(-1)