Robert Kern wrote: > Tim Hochberg wrote: >> Nils Wagner wrote: >>> Hi all, >>> >>> how can I increase the number of digits in the output of str(.) ? >>> >> You can't as far as I know. For floats, you can use "%.nf". For example: >> >> "%.13f" % 493.4802200544680 > > The problem is is that he doesn't have a float. He has one of our > float64scalar > objects. The str() of a real Python float will give as many digits as are > necessary to recreate number and no more (or maybe one or two more). A str() > of > a float64scalar will round according to some rule that I haven't figured out, > yet. It doesn't seem to be configurable with numpy.set_printoptions().
No, that's entirely wrong. Please ignore the ravings of a madman. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- 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