The conversation between human and AI assistant.
How are negative numbers represented in binary?
Can you give me an example of how this works?
Sure. Let's take the example of -6. The positive binary equivalent of 6 is 0110. Inverting all the bits gives us 1001, and adding 1 to that gives us the two's complement representation of -6, which is 1010.