Computer Science, asked by Anonymous, 5 months ago

how to convert binary number to decimal number.​

Answers

Answered by mishri128lal
2

Answer:

There are mainly two methods to convert a binary number into decimal number − using positional notation, and using doubling.

Explanation:

3 ways to convert binary number to decimal number:

  • 1. Write down the binary number and list the powers of 2 from right to left. Let's say we want to convert the binary number 100110112 to decimal. First, write it down. Then, write down the powers of two from right to left. Start at 20, evaluating it as "1". Increment the exponent by one for each power. Stop when the amount of elements in the list is equal to the amount of digits in the binary number. The example number, 10011011, has eight digits, so the list, with eight elements, would look like this: 128, 64, 32, 16, 8, 4, 2, 1
  • 2. Write the digits of the binary number below their corresponding powers of two. Now, just write 10011011 below the numbers 128, 64, 32, 16, 8, 4, 2, and 1 so that each binary digit corresponds with its power of two. The "1" to the right of the binary number should correspond with the "1" on the right of the listed powers of two, and so on. You can also write the binary digits above the powers of two, if you prefer it that way. What's important is that they match up.
  • 3. Connect the digits in the binary number with their corresponding powers of two. Draw lines, starting from the right, connecting each consecutive digit of the binary number to the power of two that is next in the list above it. Begin by drawing a line from the first digit of the binary number to the first power of two in the list above it. Then, draw a line from the second digit of the binary number to the second power of two in the list. Continue connecting each digit with its corresponding power of two. This will help you visually see the relationship between the two sets of numbers.

There are many ways but these three are main.

ok.

Answered by rinkughosh9932
21

Answer:

  • Divide the number by 2.
  • Get the integer quotient for the next iteration.
  • Get the remainder for the binary digit.
  • Repeat the steps until the quotient is equal to 0.

Explanation:

Hope this will help you...

Similar questions