Home
last modified time | relevance | path

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

/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/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/cpython2/Doc/whatsnew/
D2.6.rst3255 :meth:`create_decimal` method of :class:`Context` objects now
/external/python/cpython2/Misc/
DNEWS11036 Context.create_decimal no longer accepts trailing newlines.