Asked By
ELVIS EZAN
0 points
N/A
Posted on - 07/10/2011
Hi all,
I was working on a linear regression program, and when I try to convert the input file data to a float, I got this error.
Groove shark error: invalid literal for float (): iii. I'm using Windows XP SP2.
Any help?
Answered By
Santons
5 points
N/A
#81972
Grooveshark error: invalid literalfor float(): iii
Â
This error is strange to the java script and it Looks like you are trying to convert a string to a float. If the string is E-135, the it is indeed an invalid value to be converted to a float. Perhaps you are chopping off a digit in the beginning of the string and it really ought to be something like 1E-135? That would be a valid float,
>>> float('1E-135')
1e-135
>>> float('E-135')
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ValueError: invalid literal for float(): E-135
Â
In fact, which number is E-135 supposed to represent? 1×10^-135?
Â