I'm trying to get my python to convert a number given by the user in meters into inches, feet, and yards. When converting into inches it outputs 100*39.37 as 3936.9999999999995 which is clearly wrong. Anyone know why it's wrong and/or what I should change to make it correct?
Code:
measurement = int(input("How many meters do you want converting?"))
inches = measurement * 39.37
feet = inches / 12
yards = feet / 3
print("That is", inches ,"inches, ", feet,"feet and ", yards,"yards")