Searched refs:compare_total (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_decimal.py | 1634 self.assertEqual(Decimal(4).compare_total(3), 1635 Decimal(4).compare_total(Decimal(3))) 1827 d = c.compare_total(Decimal(1), Decimal(1)) 1828 self.assertEqual(c.compare_total(1, 1), d) 1829 self.assertEqual(c.compare_total(Decimal(1), 1), d) 1830 self.assertEqual(c.compare_total(1, Decimal(1)), d) 1831 self.assertRaises(TypeError, c.compare_total, '1', 1) 1832 self.assertRaises(TypeError, c.compare_total, 1, '1')
|
/external/python/cpython2/Lib/ |
D | decimal.py | 2743 c = self.compare_total(other) 2777 c = self.compare_total(other) 2829 def compare_total(self, other): member in Decimal 2911 return s.compare_total(o) 3353 c = self.compare_total(other) 3383 c = self.compare_total(other) 4084 def compare_total(self, a, b): member in Context 4111 return a.compare_total(b)
|
/external/python/cpython2/Doc/library/ |
D | decimal.rst | 465 .. method:: compare_total(other) 473 >>> Decimal('12.0').compare_total(Decimal('12')) 488 value as in :meth:`compare_total`, but ignoring the sign of each operand. 490 ``x.copy_abs().compare_total(y.copy_abs())``. 1176 .. method:: compare_total(x, y)
|
/external/python/cpython2/Lib/test/decimaltestdata/ |
D | extra.decTest | 174 -- Issue #6794: when comparing NaNs using compare_total, payloads
|
/external/python/cpython2/Misc/ |
D | NEWS | 7947 - Issue #6794: Fix Decimal.compare_total and Decimal.compare_total_mag: NaN
|