From: David D. <dav...@lo...> - 2006-07-10 13:08:17
|
On Mon, Jul 10, 2006 at 02:33:52PM +0200, Nils Wagner wrote: > Hi all, >=20 > how can I increase the number of digits in the output of str(.) ? >=20 > >>> lam**2 > 493.48022005446808 > >>> str(lam**2) > '493.480220054' >=20 > '493.4802200544680' would be fine. Maybe something like=20 >>> '%.13f'%(lam**2) David --=20 David Douard LOGILAB, Paris (France) Formations Python, Zope, Plone, Debian : http://www.logilab.fr/formations D=E9veloppement logiciel sur mesure : http://www.logilab.fr/services Informatique scientifique : http://www.logilab.fr/science |