On Mon, Jul 10, 2006 at 02:33:52PM +0200, Nils Wagner wrote: > Hi all, > > how can I increase the number of digits in the output of str(.) ? > > >>> lam**2 > 493.48022005446808 > >>> str(lam**2) > '493.480220054' > > '493.4802200544680' would be fine.
Maybe something like >>> '%.13f'%(lam**2) David -- David Douard LOGILAB, Paris (France) Formations Python, Zope, Plone, Debian : http://www.logilab.fr/formations Développement logiciel sur mesure : http://www.logilab.fr/services Informatique scientifique : http://www.logilab.fr/science
signature.asc
Description: Digital signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion