Back
You can use float, try the following code:
>>> x = "2342.34">>> float(x)2342.3400000000001
>>> x = "2342.34"
>>> float(x)
2342.3400000000001
Want to become a expert in python? Join the python course fast!
31k questions
32.8k answers
501 comments
693 users