69.5k views
2 votes
( base 7)= (8-bit Two's complement binary number)?

User Skwashua
by
8.3k points

1 Answer

0 votes

Final answer:

In base 7, the valid range is -3 to 3, while in an 8-bit Two's complement binary number, the valid range is -128 to 127.

Step-by-step explanation:

In base 7, the digits range from 0 to 6. In an 8-bit Two's complement binary number, the leftmost bit is the sign bit. Therefore, the valid range for the base 7 number is -3 to 3, while the valid range for the 8-bit Two's complement binary number is -128 to 127.

For example, if we convert the base 7 number '6' to an 8-bit Two's complement binary number, we get '00000110', which represents the decimal value 6. Similarly, if we convert the base 7 number '-3' to an 8-bit Two's complement binary number, we get '11111101', which represents the decimal value -3.

User Scott Lahteine
by
8.7k points