Lines Matching full:decimal
56 C = import_fresh_module('decimal', fresh=['_decimal'])
57 P = import_fresh_module('decimal', blocked=['_decimal'])
61 # Contains all categories of Decimal methods.
107 # applies to the number of Decimal arguments.
300 # context values. We emulate this restriction for decimal.py.
361 self.cop = RestrictedList() # converted C.Decimal operands
362 self.cex = RestrictedList() # Python exceptions for C.Decimal
363 self.cresults = RestrictedList() # C.Decimal results
364 self.pop = RestrictedList() # converted P.Decimal operands
365 self.pex = RestrictedList() # Python exceptions for P.Decimal
366 self.presults = RestrictedList() # P.Decimal results
378 self.maxop = RestrictedList() # converted C.Decimal operands
379 self.maxex = RestrictedList() # Python exceptions for C.Decimal
380 self.maxresults = RestrictedList() # C.Decimal results
388 """Handle known discrepancies between decimal.py and _decimal.so.
416 cmp = 1 if x.compare_total(P.Decimal("+0")) >= 0 else -1
459 if P.Decimal("-0.6") < err < P.Decimal("0.6"):
462 if P.Decimal("-0.1") < err < P.Decimal("1.1"):
465 if P.Decimal("-1.1") < err < P.Decimal("0.1"):
468 if P.Decimal("-1.1") < err < P.Decimal("1.1"):
492 rounded = P.Decimal(t.cresults[0])
503 Decimal("1.00000000000000000000000000000000000000000000000"
529 """Always calls the resolve function. C.Decimal does not have correct
550 """decimal.py gives precedence to the first NaN; this is
552 two decimal arguments."""
560 """Exception: Decimal('1').__round__(-100000000000000000000000000)
669 if isinstance(a, C.Decimal):
677 operands t.op of various types. For decimal methods the first
678 operand (self) is always converted to Decimal. If 'convstr' is
699 c = C.Decimal(op)
714 maxop = C.Decimal(op)
760 t.cop and t.pop for the C and Python versions of decimal.
761 For Decimal methods, the first operands are of type C.Decimal and
762 P.Decimal respectively. The remaining operands can have various types.
830 t.cop: C.Decimal operands (see convert for details)
831 t.pop: P.Decimal operands (see convert for details)
842 if isinstance(t.rc, C.Decimal) and isinstance(t.rp, P.Decimal):
853 if t.with_maxcontext and isinstance(t.rmax, C.Decimal):
1143 # s = 'Context' if c_cls == C.Context else 'Decimal'
1227 check_untested(Functions, C.Decimal, P.Decimal)
1248 # Decimal methods: