/external/python/cpython3/Modules/_decimal/tests/ |
D | deccheck.py | 175 self.p.Emin = self.c.Emin 195 assert(self.c.Emin == self.p.Emin) 196 return self.c.Emin 199 self.c.Emin = val 200 self.p.Emin = val 235 Emin = property(getemin, setemin) variable in Context 274 context.Emin = C.MIN_EMIN 282 Emin=C.MIN_EMIN, 360 self.maxctx = P.Context(Emax=10**18, Emin=-10**18) 795 context.Emin = random.randrange(-1000, 0) [all …]
|
D | bench.py | 101 c.Emin = C.MIN_EMIN
|
/external/python/cpython3/Lib/test/ |
D | test_decimal.py | 473 self.context.Emin = exp 1600 save_emin = DefaultContext.Emin 1603 DefaultContext.Emin = -425000000 1626 DefaultContext.Emin = save_emin 1724 c = Context(Emax=emax, Emin=emin) 2172 c.Emin = -999 2389 context.Emin = -999 2393 self.assertEqual(c.Emin, -999) 2604 c = Context(Emax=99999, Emin=-99999) 2649 xc.Emin = -1 [all …]
|
/external/python/cpython3/Lib/test/decimaltestdata/ |
D | abs.decTest | 105 -- next is rounded to Emin 118 -- next is rounded to Emin
|
D | minus.decTest | 126 -- next is rounded to Emin 139 -- next is rounded to Emin
|
D | plus.decTest | 137 -- next is rounded to Emin 150 -- next is rounded to Emin
|
D | reduce.decTest | 165 -- next is rounded to Emin 178 -- next is rounded to Emin
|
D | rescale.decTest | 635 -- next is rounded to Emin 649 -- next is rounded to Emin 661 -- next is rounded to Emin 673 -- next is rounded to Emin
|
D | dqQuantize.decTest | 606 -- next is rounded to Emin 620 -- next is rounded to Emin 632 -- next is rounded to Emin 644 -- next is rounded to Emin
|
D | ddQuantize.decTest | 596 -- next is rounded to Emin 610 -- next is rounded to Emin 622 -- next is rounded to Emin 634 -- next is rounded to Emin
|
D | quantize.decTest | 754 -- next is rounded to Emin 768 -- next is rounded to Emin 780 -- next is rounded to Emin 792 -- next is rounded to Emin
|
D | dsEncode.decTest | 36 -- Emin = -95 (smallest exponent value)
|
/external/python/cpython2/Lib/test/decimaltestdata/ |
D | abs.decTest | 105 -- next is rounded to Emin 118 -- next is rounded to Emin
|
D | minus.decTest | 126 -- next is rounded to Emin 139 -- next is rounded to Emin
|
D | plus.decTest | 137 -- next is rounded to Emin 150 -- next is rounded to Emin
|
D | reduce.decTest | 165 -- next is rounded to Emin 178 -- next is rounded to Emin
|
D | rescale.decTest | 635 -- next is rounded to Emin 649 -- next is rounded to Emin 661 -- next is rounded to Emin 673 -- next is rounded to Emin
|
D | dqQuantize.decTest | 606 -- next is rounded to Emin 620 -- next is rounded to Emin 632 -- next is rounded to Emin 644 -- next is rounded to Emin
|
D | ddQuantize.decTest | 596 -- next is rounded to Emin 610 -- next is rounded to Emin 622 -- next is rounded to Emin 634 -- next is rounded to Emin
|
D | quantize.decTest | 754 -- next is rounded to Emin 768 -- next is rounded to Emin 780 -- next is rounded to Emin 792 -- next is rounded to Emin
|
D | dsEncode.decTest | 36 -- Emin = -95 (smallest exponent value)
|
/external/python/cpython3/Lib/ |
D | _pydecimal.py | 2581 if ans and ans.adjusted() < context.Emin: 3137 return context.Emin <= self.adjusted() 3157 return self.adjusted() < context.Emin 3574 elif ans.adjusted() < context.Emin: 3884 def __init__(self, prec=None, rounding=None, Emin=None, Emax=None, argument 3896 self.Emin = Emin if Emin is not None else dc.Emin 3978 (self.prec, self.rounding, self.Emin, self.Emax, 4006 nc = Context(self.prec, self.rounding, self.Emin, self.Emax, 4013 nc = Context(self.prec, self.rounding, self.Emin, self.Emax, 4065 return int(self.Emin - self.prec + 1) [all …]
|
/external/python/cpython2/Lib/ |
D | decimal.py | 2479 if ans and ans.adjusted() < context.Emin: 3035 return context.Emin <= self.adjusted() 3055 return self.adjusted() < context.Emin 3472 elif ans.adjusted() < context.Emin: 3784 Emin=None, Emax=None, argument 3796 self.Emin = Emin if Emin is not None else dc.Emin 3840 self.flags, self.Emin, self.Emax, 3847 self.flags.copy(), self.Emin, self.Emax, 3897 return int(self.Emin - self.prec + 1) 5884 Emin=-999999999,
|
/external/python/cpython2/Doc/library/ |
D | decimal.rst | 128 Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=-999999999, Emax=999999999, 250 Context(prec=9, rounding=ROUND_HALF_EVEN, Emin=-999999999, Emax=999999999, 275 Context(prec=9, rounding=ROUND_HALF_EVEN, Emin=-999999999, Emax=999999999, 610 number with an adjusted exponent greater than or equal to *Emin*. 642 adjusted exponent less than *Emin*. 1031 .. class:: Context(prec=None, rounding=None, traps=None, flags=None, Emin=None, Emax=None, capitals… 1055 The *Emin* and *Emax* fields are integers specifying the outer limits allowable 1134 Returns a value equal to ``Emin - prec + 1`` which is the minimum exponent 1501 :attr:`Emin` and :attr:`Emax` limits. If possible, the exponent is reduced to 1570 Exponent was lower than :attr:`Emin` prior to rounding.
|
/external/python/cpython3/Doc/library/ |
D | decimal.rst | 133 Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=-999999, Emax=999999, 284 Context(prec=9, rounding=ROUND_HALF_EVEN, Emin=-999999, Emax=999999, 309 Context(prec=9, rounding=ROUND_HALF_EVEN, Emin=-999999, Emax=999999, 996 .. class:: Context(prec=None, rounding=None, Emin=None, Emax=None, capitals=None, clamp=None, flags… 1011 The *Emin* and *Emax* fields are integers specifying the outer limits allowable 1012 for exponents. *Emin* must be in the range [:const:`MIN_EMIN`, :const:`0`], 1022 range ``Emin - prec + 1 <= e <= Emax - prec + 1``. If *clamp* is 1112 Returns a value equal to ``Emin - prec + 1`` which is the minimum exponent 1543 :attr:`Emin` and :attr:`Emax` limits. If possible, the exponent is reduced to 1611 Exponent was lower than :attr:`Emin` prior to rounding. [all …]
|