You might try this thread http://www.picbasic.co.uk/forum/showthread.php?t=12480 for an answer on modulus.
Funny, I had to write this down to have it make sense. Using a calculator only confused the issue. Try beginning with smaller numbers is the easiest.
Bookmarks