Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Officially goin out of my mind. Trivial INT problem
#2
Floating point math. Y is probably 3550.99999999999999, which is enough to print 3551, but which INT will round down to 3550.

Try making the variables DOUBLE or FLOAT types.
Reply


Messages In This Thread
RE: Officially goin out of my mind. Trivial INT problem - by SMcNeill - 10-31-2022, 03:39 AM



Users browsing this thread: 1 Guest(s)