Re: [Numpy-discussion] ValueError: invalid literal for float()

2009-02-27 Thread Charles R Harris
On Fri, Feb 27, 2009 at 8:20 AM, Nils Wagner wrote: > Hi all, > > Is it possible to modify the behaviour of float wrt > the following situation > > > >>> permas_M[0,2] > '1.569809265137D+01' > >>> float(permas_M[0,2]) > Traceback (most recent call last): > File "", line 1, in > ValueError:

[Numpy-discussion] ValueError: invalid literal for float()

2009-02-27 Thread Nils Wagner
Hi all, Is it possible to modify the behaviour of float wrt the following situation >>> permas_M[0,2] '1.569809265137D+01' >>> float(permas_M[0,2]) Traceback (most recent call last): File "", line 1, in ValueError: invalid literal for float(): 1.569809265137D+01 The following wor