Gents ...
I dont understand how this works, which is exactly why I was asking ...
You're comparing the behaviour of a signed byte against an unsigned int.
NO I compared a signed byte to a signed int, the last two sets of figures, and they behave differently.
I also compared the signed int to an unsigned int, which you say should differ because one is signed and the other isnt.
They both work the same. Obviously when they roll-over the values differ, one is negative, but the subtraction to find the change works.
-32763 - 32762 = -65525 whether you use a calculator or a spreadsheet,
Unless its an int ...
-32763 - 32762 = 11
The same is true of unsigned ints where:-
5 - 65530 = 11
bytes and chars however:-
5 - 250 = -245