Searched refs:next_plus (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_decimal.py | 2079 d = c.next_plus(Decimal(10)) 2080 self.assertEqual(c.next_plus(10), d) 2081 self.assertRaises(TypeError, c.next_plus, '10')
|
/external/python/cpython2/Lib/ |
D | decimal.py | 3415 def next_plus(self, context=None): member in Decimal 3461 ans = self.next_plus(context) 4819 def next_plus(self, a): member in Context 4837 return a.next_plus(context=self)
|
/external/python/cpython3/Lib/ |
D | _pydecimal.py | 3521 def next_plus(self, context=None): member in Decimal 3567 ans = self.next_plus(context) 4995 def next_plus(self, a): member in Context 5013 return a.next_plus(context=self)
|
/external/python/cpython3/Lib/test/ |
D | test_decimal.py | 2222 self.assertEqual(str(y.next_plus(context=None)), 'Infinity') 2223 self.assertRaises(InvalidOperation, Decimal('sNaN').next_plus, context=None) 2677 self.assertEqual(D(-1).next_plus(context=xc), D('-0.9')) 3341 d = c.next_plus(Decimal(10)) 3342 self.assertEqual(c.next_plus(10), d) 3343 self.assertRaises(TypeError, c.next_plus, '10') 4327 self.assertEqual(Decimal("10").next_plus(), Decimal('2E+1'))
|
/external/python/cpython3/Modules/_decimal/tests/ |
D | deccheck.py | 400 a = dec.next_plus()
|
/external/python/cpython2/Doc/library/ |
D | decimal.rst | 744 .. method:: next_plus([context]) 1346 .. method:: next_plus(x)
|
/external/python/cpython3/Doc/library/ |
D | decimal.rst | 730 .. method:: next_plus(context=None) 1323 .. method:: next_plus(x)
|