Searched refs:to_integral_exact (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_decimal.py | 2363 ans = str(Decimal('1.5').to_integral_exact(rounding=None, context=None)) 2366 ans = str(Decimal('1.5').to_integral_exact(rounding=None, context=None)) 2368 ans = str(Decimal('1.5').to_integral_exact(rounding=ROUND_UP, context=None)) 2371 self.assertRaises(InvalidOperation, Decimal('sNaN').to_integral_exact, context=None) 2680 self.assertEqual(D("-2000").to_integral_exact(context=xc), -2000) 3526 d = c.to_integral_exact(Decimal(10)) 3527 self.assertEqual(c.to_integral_exact(10), d) 3528 self.assertRaises(TypeError, c.to_integral_exact, '10') 4339 self.assertEqual(Decimal("1.12345").to_integral_exact(), 1) 5066 self.assertEqual(x.to_integral_exact(), 10) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_decimal.py | 2214 d = c.to_integral_exact(Decimal(10)) 2215 self.assertEqual(c.to_integral_exact(10), d) 2216 self.assertRaises(TypeError, c.to_integral_exact, '10')
|
/external/python/cpython2/Lib/ |
D | decimal.py | 2563 def to_integral_exact(self, rounding=None, context=None): member in Decimal 5376 def to_integral_exact(self, a): member in Context 5404 return a.to_integral_exact(context=self)
|
/external/python/cpython3/Lib/ |
D | _pydecimal.py | 2669 def to_integral_exact(self, rounding=None, context=None): member in Decimal 5552 def to_integral_exact(self, a): member in Context 5580 return a.to_integral_exact(context=self)
|
/external/python/cpython2/Doc/library/ |
D | decimal.rst | 899 .. method:: to_integral_exact([rounding[, context]]) 1465 .. method:: to_integral_exact(x)
|
/external/python/cpython3/Doc/library/ |
D | decimal.rst | 874 .. method:: to_integral_exact(rounding=None, context=None) 1447 .. method:: to_integral_exact(x)
|