Divide operation yields different result with the last decimal digit in Python, than that of a regular calc

前端 未结 0 1020
猫巷女王i
猫巷女王i 2020-12-21 14:27

I am trying to perform a divide operation in python, (3000/365)*3000 which prints 3000.0000000000005. Whereas in actual this should return 3000?

Can some

相关标签:
回答
  • 消灭零回复
提交回复
热议问题