232k views
4 votes
assume we have a byte system for the fixed number representation (the whole number is presented with 8-bits (one byte) and the fractional part is presented with 2-bits), find the 2's complement of 0110 0010.01

User Joash
by
8.0k points

1 Answer

4 votes

Answer:

To find the 2's complement of a number, you first invert all of the bits and then add 1. For example, the 2's complement of 0110 0010.01 is 1001 1110.00.

Here is a step-by-step guide on how to find the 2's complement of a number:

1. Invert all of the bits. For example, 0110 0010.01 becomes 1001 1110.00.

2. Add 1. For example, 1001 1110.00 + 1 = 1001 1111.00.

The 2's complement of a number is a way of representing that number in a system where all negative numbers are represented by their inverses plus 1. This is useful for many mathematical operations, such as addition and subtraction.

Step-by-step explanation:

User Charles Kornoelje
by
7.7k points