Computer Science, asked by ashasurya1988, 9 months ago

बाइनरी टो हेक्साडेसिमल​

Answers

Answered by atulshukla53
3

Answer:

it is a question of chemistry

Answered by stuti9364
0

Answer:

Step 1: Write down the binary number and group the digits (0’s and 1’s) in sets of four. Start doing this from the right. If the leftmost group doesn’t have enough digits to make up a set of four, add extra 0’s to make a group.

Step 2: Write 8, 4, 2 and 1 below each group. These are the weights of the positions or place holders in the number (23, 22, 21 and 20).

Step 3: Every group of four in binary will give you one digit in hexadecimal. Multiply the 8, 4, 2 and 1’s by the digit above.

Step 4: Add the products within each set of four. Write the sums below the groups they belong to.

Step 5: The digits you get from the sums in each group will give you the hexadecimal number, from left to right.

Now, let’s apply these steps to, for example, the binary number (10101010)2

Step 1: 10101010 has eight digits and therefore can be grouped in sets of four without adding 0’s.

Think of the number as (1010)(1010)

Step 2: Write 8, 4, 2 and 1 below each group.

1010 1010

8421 8421

Step 3: Multiply the 8, 4, 2 and 1’s with the digit above.

1010 1010

8421 8421

8020 8020

Step 4: Add the products within each set of four.

In the first group, 8 + 2 = 10

In the second group, 8 + 2 = 10

Write these digits below the groups they belong to.

1010 1010

8421 8421

8020 8020

10 10

Step 5: Notice that, in order to represent values above 9, letters will be used. 10 is represented as the letter A in the hexadecimal system. Therefore, (10101010)2 = (AA)16

Similar questions