Home
last modified time | relevance | path

Searched refs:next_toward (Results 1 – 3 of 3) 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/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/cpython2/Doc/library/
Ddecimal.rst752 .. method:: next_toward(other[, context])
1351 .. method:: next_toward(x, y)