Home > Back-end >  Double assignment to int
Double assignment to int

Time:10-22

请问为什么会这样啊

CodePudding user response:

Floating point int is rounded down, 9.99999 will be 9
But according to the floating point print could be 10, because the floating point precision error,
  • Related