Searched refs:compare_total (Results 1 – 11 of 11) 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/cpython3/Lib/ |
D | _pydecimal.py | 2849 c = self.compare_total(other) 2883 c = self.compare_total(other) 2935 def compare_total(self, other, context=None): member in Decimal 3017 return s.compare_total(o) 3459 c = self.compare_total(other) 3489 c = self.compare_total(other) 4258 def compare_total(self, a, b): member in Context 4285 return a.compare_total(b)
|
/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/cpython3/Lib/test/ |
D | test_decimal.py | 2421 self.assertEqual(Decimal(4).compare_total(3), 2422 Decimal(4).compare_total(Decimal(3))) 2995 d = c.compare_total(Decimal(1), Decimal(1)) 2996 self.assertEqual(c.compare_total(1, 1), d) 2997 self.assertEqual(c.compare_total(Decimal(1), 1), d) 2998 self.assertEqual(c.compare_total(1, Decimal(1)), d) 2999 self.assertRaises(TypeError, c.compare_total, '1', 1) 3000 self.assertRaises(TypeError, c.compare_total, 1, '1')
|
/external/python/cpython3/Doc/library/ |
D | decimal.rst | 502 .. method:: compare_total(other, context=None) 510 >>> Decimal('12.0').compare_total(Decimal('12')) 527 value as in :meth:`compare_total`, but ignoring the sign of each operand. 529 ``x.copy_abs().compare_total(y.copy_abs())``. 1153 .. method:: compare_total(x, y)
|
/external/python/cpython3/Modules/_decimal/tests/ |
D | deccheck.py | 416 cmp = 1 if x.compare_total(P.Decimal("+0")) >= 0 else -1
|
/external/python/cpython3/Lib/test/decimaltestdata/ |
D | extra.decTest | 174 -- Issue #6794: when comparing NaNs using compare_total, payloads
|
/external/python/cpython2/Lib/test/decimaltestdata/ |
D | extra.decTest | 174 -- Issue #6794: when comparing NaNs using compare_total, payloads
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7a1.rst | 2166 Fix Decimal.compare_total and Decimal.compare_total_mag: NaN payloads are
|
/external/python/cpython3/Misc/ |
D | HISTORY | 14077 - Issue #6794: Fix Decimal.compare_total and Decimal.compare_total_mag: NaN
|