When doing this for a negative number, like -213 for example, I successfully found the answer by doing $(2^9 + -327)$ => $(2^9 - 213)$ taking the result of that, and using the division by 2 method, adding on leading zeros to make it ten bits, the final left most bit being a 1 since it's negative. When I tried to do something similar with a positive number trying ($2^9 + \text{posnumber}$) and then continuing on the same as before, I wasn't able to get the correct answer. I thought maybe I had to subtract in both cases and just make the leading digit 0 for it being positive but that wasn't giving me the right answer either.
So can someone tell me how I'm supposed to handle these and explain this better?
(I know you can do something with flipping bits and adding one but am not supposed to do that here.)
To convert a positive decimal number to $10$-bit two's-complement form, we:
Example 1: Convert $213$ to $10$-bit $2's$-complement
To convert a negative decimal number to $10$-bit two's-complement form, we:
Example 2: Convert $-213$ to $10$-bit $2's$-complement
Of course, this process works with any size, just always be sure to use the correct number of bits and that those provide enough range for the numbers in question, for example, for $8$-bit binary, we can represent the range of signed numbers $2^{n-1}$, that is $-128 ~ \mbox{to}~ 127$.
The process to go backwards to convert a negative two's complement number back to decimal is:
Try this on the above result and make sure you understand how to go both ways.
Lastly, try using hex and seeing if you can do it that way, it is typically easier, but you must always be careful.