Home
last modified time | relevance | path

Searched refs:number_class (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_decimal.py2100 self.assertEqual(c.number_class(123), c.number_class(Decimal(123)))
2101 self.assertEqual(c.number_class(0), c.number_class(Decimal(0)))
2102 self.assertEqual(c.number_class(-45), c.number_class(Decimal(-45)))
/external/python/cpython3/Lib/test/
Dtest_decimal.py2231 self.assertEqual(str(z.number_class(context=None)), '+Subnormal')
2727 self.assertEqual(D('0.01').number_class(context=xc), '+Subnormal')
3371 self.assertEqual(c.number_class(123), c.number_class(Decimal(123)))
3372 self.assertEqual(c.number_class(0), c.number_class(Decimal(0)))
3373 self.assertEqual(c.number_class(-45), c.number_class(Decimal(-45)))
4331 self.assertEqual(Decimal("10").number_class(), '+Normal')
5092 self.assertRaises(TypeError, Decimal(9).number_class, "x", "y")
/external/python/cpython2/Lib/
Ddecimal.py3484 def number_class(self, context=None): member in Decimal
4898 def number_class(self, a): member in Context
4946 return a.number_class(context=self)
/external/python/cpython3/Lib/
D_pydecimal.py3590 def number_class(self, context=None): member in Decimal
5074 def number_class(self, a): member in Context
5122 return a.number_class(context=self)
/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py855 nc = t.rc.number_class().lstrip('+-s')
/external/python/cpython2/Doc/library/
Ddecimal.rst770 .. method:: number_class([context])
1361 .. method:: number_class(x)
/external/python/cpython3/Doc/library/
Ddecimal.rst752 .. method:: number_class(context=None)
1338 .. method:: number_class(x)