Searched refs:remainder_near (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_decimal.py | 1656 self.assertEqual(Decimal(768).remainder_near(1234), 1657 Decimal(768).remainder_near(Decimal(1234))) 2142 d = c.remainder_near(Decimal(1), Decimal(2)) 2143 self.assertEqual(c.remainder_near(1, 2), d) 2144 self.assertEqual(c.remainder_near(Decimal(1), 2), d) 2145 self.assertEqual(c.remainder_near(1, Decimal(2)), d) 2146 self.assertRaises(TypeError, c.remainder_near, '1', 2) 2147 self.assertRaises(TypeError, c.remainder_near, 1, '2')
|
/external/python/cpython2/Doc/library/ |
D | decimal.rst | 823 .. method:: remainder_near(other[, context]) 834 >>> Decimal(18).remainder_near(Decimal(10)) 836 >>> Decimal(25).remainder_near(Decimal(10)) 838 >>> Decimal(35).remainder_near(Decimal(10)) 1420 .. method:: remainder_near(x, y)
|
/external/python/cpython2/Lib/ |
D | decimal.py | 1470 def remainder_near(self, other, context=None): member in Decimal 5149 def remainder_near(self, a, b): member in Context 5181 return a.remainder_near(b, context=self)
|