Searched refs:remainder_near (Results 1 – 6 of 6) 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/cpython3/Lib/test/ |
D | test_decimal.py | 2305 ans = str(x.remainder_near(101, context=None)) 2307 self.assertRaises(InvalidOperation, y.remainder_near, 101, context=None) 2426 self.assertEqual(Decimal(768).remainder_near(1234), 2427 Decimal(768).remainder_near(Decimal(1234))) 2703 self.assertEqual(D("9.99").remainder_near(D('1.5'), context=xc), 3427 d = c.remainder_near(Decimal(1), Decimal(2)) 3428 self.assertEqual(c.remainder_near(1, 2), d) 3429 self.assertEqual(c.remainder_near(Decimal(1), 2), d) 3430 self.assertEqual(c.remainder_near(1, Decimal(2)), d) 3431 self.assertRaises(TypeError, c.remainder_near, '1', 2) [all …]
|
/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/cpython3/Doc/library/ |
D | decimal.rst | 800 .. method:: remainder_near(other, context=None) 811 >>> Decimal(18).remainder_near(Decimal(10)) 813 >>> Decimal(25).remainder_near(Decimal(10)) 815 >>> Decimal(35).remainder_near(Decimal(10)) 1402 .. 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)
|
/external/python/cpython3/Lib/ |
D | _pydecimal.py | 1500 def remainder_near(self, other, context=None): member in Decimal 5325 def remainder_near(self, a, b): member in Context 5357 return a.remainder_near(b, context=self)
|