Python float – str – float weirdness

>>> float(str(0.65000000000000002)) 0.65000000000000002 >>> float(str(0.47000000000000003)) 0.46999999999999997 ??? What is going on here? How do I convert 0.47000000000000003 to string and the resultant value back to float? I am using Python 2.5.4 on Windows. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the … Read more