printf (“%d”, 0.0625) prints a zero while nearby values such as 0.0624 print absurd numbers as you would expect, why is 0.0625 different?

后端 未结 0 845
清歌不尽
清歌不尽 2021-01-25 02:29

I also noticed that multiples of 0.0625 such as 1.25 keep giving zero but I was unable to find an explanation

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