The issue is caused by passing a string
to int()
instead of a float
:
int('-3.21588')
# ValueError: invalid literal for int() with base 10: '-3.21588'
int(-3.21588)
# -3
The issue is caused by passing a string
to int()
instead of a float
:
int('-3.21588')
# ValueError: invalid literal for int() with base 10: '-3.21588'
int(-3.21588)
# -3