Why do I get this error?

ValueError: invalid literal for int() with base 10: ”.

2Best Answer
21

Just for the record:

>>> int('55063.000000')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '55063.000000'

Got me here…

>>> int(float('55063.000000'))
55063

Has to be used!

Leave a Reply

Your email address will not be published. Required fields are marked *