|
From: John H. <jd...@gm...> - 2007-12-15 21:35:43
|
On Dec 15, 2007 3:13 PM, Andrew Straw <str...@as...> wrote: > mlab.defaultformatd sets the default float formatter for rec2csv() to be > something that doesn't keep the full representation of a floating point > number. Obviously, I can pass in my own formatd argument to rec2csv(), > but I wonder if there's any reason why defaultformatd shouldn't use > repr() for numpy.float32 and numpy.float64? I'll be happy to make repr the default. I was using %g because I mistakenly though this provided the appropriate number of significant digits. I changed this to %r in the csvformat_factory in svn. JDJ |