Rounding using float in python

前端 未结 0 1101
刺人心
刺人心 2020-12-12 14:17

Very strange that I ran print(float(122.322222222232248888888838393)) in Python and it returned me response as 122.32222222223226. How does this rounding happen from 4 to 6?

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