Home
last modified time | relevance | path

Searched refs:create_decimal (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_decimal.py281 return self.readcontext.create_decimal(v)
388 funct(self.context.create_decimal(v))
397 v = self.context.create_decimal(v)
591 self.assertEqual(str(context.create_decimal(s)), '9.999999')
717 d = nc.create_decimal()
721 self.assertRaises(TypeError, nc.create_decimal, None)
724 d = nc.create_decimal(456)
726 self.assertEqual(nc.create_decimal(45678),
727 nc.create_decimal('457E+2'))
732 d = nc.create_decimal('456789')
[all …]
/external/python/cpython2/Lib/test/
Dtest_decimal.py326 funct(self.context.create_decimal(v))
335 v = self.context.create_decimal(v)
564 d = nc.create_decimal()
568 self.assertRaises(TypeError, nc.create_decimal, None)
571 d = nc.create_decimal(456)
573 self.assertEqual(nc.create_decimal(45678),
574 nc.create_decimal('457E+2'))
579 d = nc.create_decimal('456789')
584 self.assertEqual(str(nc.create_decimal('3.14\n')), 'NaN')
589 d = nc.create_decimal( (1, (4, 3, 4, 9, 1, 3, 5, 3, 4), -25) )
[all …]
/external/python/cpython3/Doc/library/
Ddecimal.rst1031 >>> Context(prec=6, Emax=999, clamp=1).create_decimal('1.23e999')
1066 .. method:: create_decimal(num)
1643 :meth:`~decimal.Context.create_decimal` and all comparison operators.
2126 :meth:`Context.create_decimal` method:
2128 >>> Context(prec=5, rounding=ROUND_DOWN).create_decimal('1.2345678')
/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py311 dec = maxcontext.create_decimal(value)
/external/python/cpython2/Doc/library/
Ddecimal.rst1088 .. method:: create_decimal(num)
2050 :meth:`Context.create_decimal` method:
2052 >>> Context(prec=5, rounding=ROUND_DOWN).create_decimal('1.2345678')
/external/python/cpython2/Lib/
Ddecimal.py3922 def create_decimal(self, num='0'): member in Context
/external/python/cpython3/Lib/
D_pydecimal.py4094 def create_decimal(self, num='0'): member in Context
/external/python/cpython3/Doc/whatsnew/
D3.3.rst1157 latter case it is always possible to use :meth:`~decimal.Context.create_decimal`
D2.6.rst3259 :meth:`create_decimal` method of :class:`Context` objects now
/external/python/cpython2/Misc/NEWS.d/
D2.6a1.rst1794 whitespace when constructing from a string. Context.create_decimal no longer
/external/python/cpython2/Doc/whatsnew/
D2.6.rst3255 :meth:`create_decimal` method of :class:`Context` objects now