Home
last modified time | relevance | path

Searched refs:next_toward (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_decimal.py1652 self.assertEqual(Decimal(567).next_toward(123),
1653 Decimal(567).next_toward(Decimal(123)))
2085 d = c.next_toward(Decimal(1), Decimal(2))
2086 self.assertEqual(c.next_toward(1, 2), d)
2087 self.assertEqual(c.next_toward(Decimal(1), 2), d)
2088 self.assertEqual(c.next_toward(1, Decimal(2)), d)
2089 self.assertRaises(TypeError, c.next_toward, '1', 2)
2090 self.assertRaises(TypeError, c.next_toward, 1, '2')
/external/python/cpython3/Lib/test/
Dtest_decimal.py2422 self.assertEqual(Decimal(567).next_toward(123),
2423 Decimal(567).next_toward(Decimal(123)))
2697 self.assertEqual(D("0.2").next_toward(D('-1'), context=xc), D('0.1'))
3350 d = c.next_toward(Decimal(1), Decimal(2))
3351 self.assertEqual(c.next_toward(1, 2), d)
3352 self.assertEqual(c.next_toward(Decimal(1), 2), d)
3353 self.assertEqual(c.next_toward(1, Decimal(2)), d)
3354 self.assertRaises(TypeError, c.next_toward, '1', 2)
3355 self.assertRaises(TypeError, c.next_toward, 1, '2')
/external/python/cpython2/Lib/
Ddecimal.py3438 def next_toward(self, other, context=None): member in Decimal
4839 def next_toward(self, a, b): member in Context
4872 return a.next_toward(b, context=self)
/external/python/cpython3/Lib/
D_pydecimal.py3544 def next_toward(self, other, context=None): member in Decimal
5015 def next_toward(self, a, b): member in Context
5048 return a.next_toward(b, context=self)
/external/python/cpython2/Doc/library/
Ddecimal.rst752 .. method:: next_toward(other[, context])
1351 .. method:: next_toward(x, y)
/external/python/cpython3/Doc/library/
Ddecimal.rst736 .. method:: next_toward(other, context=None)
1328 .. method:: next_toward(x, y)