Searched refs:max_mag (Results 1 – 10 of 10) sorted by relevance
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')
2287 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 …]
3332 def max_mag(self, other, context=None): member in Decimal4689 def max_mag(self, a, b): member in Context4704 return a.max_mag(b, context=self)
3438 def max_mag(self, other, context=None): member in Decimal4865 def max_mag(self, a, b): member in Context4880 return a.max_mag(b, context=self)
157 -- max/min/max_mag/min_mag bug in 2.5.2/2.6/3.0: max(NaN, finite) gave169 extr1420 max_mag 0.1111111 -NaN123 -> 0.111111 Inexact Rounded170 extr1421 max_mag NaN999999999 0.001234567 -> 0.00123457 Inexact Rounded
715 .. method:: max_mag(other[, context])1316 .. method:: max_mag(x, y)
707 .. method:: max_mag(other, context=None)1293 .. method:: max_mag(x, y)
4489 Fix max, min, max_mag and min_mag Decimal methods to give correct results in
15828 - Issue #4084: Fix max, min, max_mag and min_mag Decimal methods to