The conversation between human and AI assistant.
What is the highest number representable in 8-bit two's complement encoding?
What about the smallest number representable in 8-bit two's complement encoding?
The smallest number representable in 8-bit two's complement encoding is -128. This is because the leftmost bit of an 8-bit two's complement number represents the sign, and in this case it is 1. The remaining 7 bits represent the magnitude, which in this case is 0000000, or 0 in decimal. Thus, the smallest number that can be represented is -128.