OK, so to definitely show how it works I did a simple project showing the result.
So, what it does?
Every 0.5 seconds, it will increase 1 to the Text box called Score.
- It will calc Score /10 and Score %10
After that, it will compare IF Score%10 is equal to 0, if IS so, say WHOLE NUMBER else, NOT A WHOLE NUMBER.
And you can see that it works as you asked, because it only show WHOLE NUMBER when also Score/10 = whole number and Score%10 = 0.
And it works for any number if you change %10 to %8 it will be a WHOLE NUMBER only when the Score is divisible by 8.