Home
last modified time | relevance | path

Searched refs:to_eng_string (Results 1 – 5 of 5) 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/cpython3/Lib/test/
Dtest_decimal.py2351 self.assertEqual(str(z.to_eng_string(context=None)), '1e-9999')
2851 self.assertEqual(D('0.21').to_eng_string(context=xc), '0.21')
3617 d = c.to_eng_string(Decimal(10))
3618 self.assertEqual(c.to_eng_string(10), d)
3619 self.assertRaises(TypeError, c.to_eng_string, '10')
5279 self.assertEqual(Decimal('9.99e10').to_eng_string(), '99.9E+9')
/external/python/cpython3/Lib/
D_pydecimal.py996 def to_eng_string(self, context=None): member in Decimal
5444 def to_eng_string(self, a): member in Context
5470 return a.to_eng_string(context=self)
/external/python/cpython3/Doc/library/
Ddecimal.rst871 .. method:: to_eng_string(context=None)
1508 .. method:: to_eng_string(x)
/external/python/cpython3/Doc/whatsnew/
D2.4.rst675 such as :meth:`to_eng_string` and :meth:`to_sci_string`.