Grooveshark error: invalid literalfor float(): iii

Asked By 0 points N/A Posted on -
qa-featured

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?

SHARE
Answered By 5 points N/A #81972

Grooveshark error: invalid literalfor float(): iii

qa-featured

 

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?
 

Related Questions