Home
last modified time | relevance | path

Searched refs:max_mag (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_decimal.py1646 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/cpython3/Lib/test/
Dtest_decimal.py2287 ans = str(x.max_mag(101, context=None))
2289 self.assertRaises(InvalidOperation, x.max_mag, Decimal('sNaN'), context=None)
2416 self.assertEqual(Decimal(567).max_mag(123),
2417 Decimal(567).max_mag(Decimal(123)))
2692 self.assertEqual(D("0.2").max_mag(D('-0.3'), context=xc),
3275 d = c.max_mag(Decimal(1), Decimal(2))
3276 self.assertEqual(c.max_mag(1, 2), d)
3277 self.assertEqual(c.max_mag(Decimal(1), 2), d)
3278 self.assertEqual(c.max_mag(1, Decimal(2)), d)
3279 self.assertRaises(TypeError, c.max_mag, '1', 2)
[all …]
/external/python/cpython2/Lib/
Ddecimal.py3332 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/cpython3/Lib/
D_pydecimal.py3438 def max_mag(self, other, context=None): member in Decimal
4865 def max_mag(self, a, b): member in Context
4880 return a.max_mag(b, context=self)
/external/python/cpython3/Lib/test/decimaltestdata/
Dextra.decTest157 -- 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/Lib/test/decimaltestdata/
Dextra.decTest157 -- 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/
Ddecimal.rst715 .. method:: max_mag(other[, context])
1316 .. method:: max_mag(x, y)
/external/python/cpython3/Doc/library/
Ddecimal.rst707 .. method:: max_mag(other, context=None)
1293 .. method:: max_mag(x, y)
/external/python/cpython2/Misc/NEWS.d/
D2.7a1.rst4489 Fix max, min, max_mag and min_mag Decimal methods to give correct results in
/external/python/cpython3/Misc/
DHISTORY15828 - Issue #4084: Fix max, min, max_mag and min_mag Decimal methods to