Problem with dividing two integers

Webca:
Nick Gammon:
I can see on a lcd what the values are so it is easy to check if i get the same as on a calculator

Yes, but that doesn't answer my question. What values did you see and what values did you get on the calculator?

That's like saying "I got a sock out of my sock drawer and it wasn't the colour I expected."

Right. What colour did you get, and what colour did you expect to get?