I finally understood how to convert from base 10 to 10's complemnt here
But how do I convert back? How do I know what sign it is? In 2s complement, its the LSB, 1 means negetive else positive. For 10s complement?
If
$$-1122_{10} = 9999 - 1122 + 1 = 8878_{10s}$$
$$8878_{10s} = 9999 - 8878 - 1 = -1122_{10}$$
But why in another problem,
$$899_{10} – 7212_{10} = 00899_{10s} + 92788_{10s} = 93687_{10s}$$
$$93687_{10s} = 99999 - 93687 - 1 = -6311_{10}$$
Correct answer should be $-6313_{10}$. Probably my method of converting from 10s complement to decimal is wrong?
Hmm... I suspect its I should be doing $100000 - 93687$ ... but why did it work in the 1st case? How do I determine the sign? LS"B" 9 means negative?
In your equations, you write
$$8878_{10s} = 9999 - 8878 - 1 = -1122_{10}$$
This is incorrect without the use of proper brackets, since
$$8878_{10s} = 9999 - 8878 - 1 = 9999 - 8879 = -1120_{10}$$
Instead, I think you meant to write
$$8878_{10s} = 9999 - (8878 - 1) = 9999 - 8877 = -1122_{10}$$
This then also shows why your final solution is wrong. Add brackets, and you get
$$93687_{10s} = 99999 - (93687 - 1) = 99999 - 93686 = -6313_{10}$$
And, like you write, it would be much easier to write $10000 - x$ rather than $9999 - (x - 1)$, which is actually the same.