Searched refs:max_mag (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_decimal.py | 1646 self.assertEqual(Decimal(567).max_mag(123), 1647 Decimal(567).max_mag(Decimal(123))) 2031 d = c.max_mag(Decimal(1), Decimal(2)) 2032 self.assertEqual(c.max_mag(1, 2), d) 2033 self.assertEqual(c.max_mag(Decimal(1), 2), d) 2034 self.assertEqual(c.max_mag(1, Decimal(2)), d) 2035 self.assertRaises(TypeError, c.max_mag, '1', 2) 2036 self.assertRaises(TypeError, c.max_mag, 1, '2')
|
/external/python/cpython2/Lib/ |
D | decimal.py | 3332 def max_mag(self, other, context=None): member in Decimal 4689 def max_mag(self, a, b): member in Context 4704 return a.max_mag(b, context=self)
|
/external/python/cpython2/Lib/test/decimaltestdata/ |
D | extra.decTest | 157 -- max/min/max_mag/min_mag bug in 2.5.2/2.6/3.0: max(NaN, finite) gave 169 extr1420 max_mag 0.1111111 -NaN123 -> 0.111111 Inexact Rounded 170 extr1421 max_mag NaN999999999 0.001234567 -> 0.00123457 Inexact Rounded
|
/external/python/cpython2/Doc/library/ |
D | decimal.rst | 715 .. method:: max_mag(other[, context]) 1316 .. method:: max_mag(x, y)
|
/external/python/cpython2/Misc/ |
D | NEWS | 8639 - Issue #4084: Fix max, min, max_mag and min_mag Decimal methods to give correct
|