r/PythonLearning • • Jul 27 '26

Not sure why it is not multiplying correctly

Post image
40 Upvotes

Just started programming today and was messing around when this happened. It is saying that 22.99 * 5 is 114.9499999999999 instead of 114.95. It does the same when I enter any number with a non-zero integer after the decimal. It works completely fine with whole numbers though. If you have any Idea why, please let me know.