Home
last modified time | relevance | path

Searched refs:to_eng_string (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py844 t.cresults.append(t.rc.to_eng_string())
848 t.presults.append(t.rp.to_eng_string())
854 t.maxresults.append(t.rmax.to_eng_string())
/external/python/cpython2/Lib/test/
Dtest_decimal.py1442 self.assertEqual(type(d.to_eng_string()), str)
2202 d = c.to_eng_string(Decimal(10))
2203 self.assertEqual(c.to_eng_string(10), d)
2204 self.assertRaises(TypeError, c.to_eng_string, '10')
/external/python/cpython3/Lib/test/
Dtest_decimal.py2262 self.assertEqual(str(z.to_eng_string(context=None)), '1e-9999')
2745 self.assertEqual(D('0.21').to_eng_string(context=xc), '0.21')
3527 d = c.to_eng_string(Decimal(10))
3528 self.assertEqual(c.to_eng_string(10), d)
3529 self.assertRaises(TypeError, c.to_eng_string, '10')
5108 self.assertEqual(Decimal('9.99e10').to_eng_string(), '99.9E+9')
/external/python/cpython3/Lib/
D_pydecimal.py1083 def to_eng_string(self, context=None): member in Decimal
5516 def to_eng_string(self, a): member in Context
5542 return a.to_eng_string(context=self)
/external/python/cpython2/Lib/
Ddecimal.py1050 def to_eng_string(self, context=None): member in Decimal
5340 def to_eng_string(self, a): member in Context
5366 return a.to_eng_string(context=self)
/external/python/cpython2/Doc/library/
Ddecimal.rst884 .. method:: to_eng_string([context])
1456 .. method:: to_eng_string(x)
/external/python/cpython3/Doc/library/
Ddecimal.rst859 .. method:: to_eng_string(context=None)
1438 .. method:: to_eng_string(x)
/external/python/cpython2/Doc/whatsnew/
D2.4.rst674 such as :meth:`to_eng_string` and :meth:`to_sci_string`.
/external/python/cpython3/Doc/whatsnew/
D2.4.rst674 such as :meth:`to_eng_string` and :meth:`to_sci_string`.