|
From: Fernando P. <fpe...@gm...> - 2007-12-15 21:15:56
|
On Dec 15, 2007 2:13 PM, Andrew Straw <str...@as...> wrote: > Hi, > > 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? +1 for repr() in general as the default output method, as it is supposed (though not guaranteed) in general to be more faithful to the original object. cheers, f |