Searched refs:to_integral (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_decimal.py | 2339 ans = str(Decimal('1.5').to_integral(rounding=None, context=None)) 2342 ans = str(Decimal('1.5').to_integral(rounding=None, context=None)) 2344 ans = str(Decimal('1.5').to_integral(rounding=ROUND_UP, context=None)) 2347 self.assertRaises(InvalidOperation, Decimal('sNaN').to_integral, context=None) 2519 r = d.to_integral(ROUND_DOWN) 2536 r = d.to_integral(ROUND_DOWN) 2679 self.assertEqual(D("9999").to_integral(context=xc), 9999) 4483 self.assertEqual(x.to_integral(), 2) 5056 self.assertEqual(x.to_integral(), 10) 5057 self.assertRaises(TypeError, x.to_integral, '10') [all …]
|
/external/python/cpython2/Doc/library/ |
D | decimal.rst | 894 .. method:: to_integral([rounding[, context]]) 896 Identical to the :meth:`to_integral_value` method. The ``to_integral`` 916 renamed from ``to_integral`` to ``to_integral_value``. The old name 2002 return d.quantize(Decimal(1)) if d == d.to_integral() else d.normalize()
|
/external/python/cpython2/Lib/test/ |
D | test_decimal.py | 1697 r = d.to_integral(ROUND_DOWN) 1717 r = d.to_integral(ROUND_DOWN)
|
/external/python/cpython3/Doc/library/ |
D | decimal.rst | 869 .. method:: to_integral(rounding=None, context=None) 871 Identical to the :meth:`to_integral_value` method. The ``to_integral`` 2075 ... return d.quantize(Decimal(1)) if d == d.to_integral() else d.normalize()
|
/external/python/cpython2/Lib/ |
D | decimal.py | 2609 to_integral = to_integral_value variable in Decimal 5436 to_integral = to_integral_value variable in Context
|
/external/python/cpython3/Lib/ |
D | _pydecimal.py | 2715 to_integral = to_integral_value variable in Decimal 5612 to_integral = to_integral_value variable in Context
|