Computer Science, asked by singhdp269, 2 months ago

Write the steps to convert a binary number into a decimal number? ​

Answers

Answered by Divyansh50800850
3

{\sf{\blue{\underline{\fbox{128 , 64 , 32 , 16 , 8 , 4 , 2 , 1}}}}}

Firstly Remember the Above cod e.

\sf\green{\underline {\underline{For \:example :- }}}

If we have to convert (11001) base 2 {binary no. }

Into Decimal no.

So ,

{16 \:\:  8   \:\:\:  4  \:\:\:  2   \:\:\: 1}

{↓  \:\:\:   ↓   \:\:\:  ↓  \:\:\:  ↓  \:\:\: ↓}

{1  \:\:\:   1   \:\:\:  0  \:\:\:  0   \:\:\: 1}

Now, Select the number from cod e where voltage is on and Add them.

So the Numbers where voltage is on are :

{\sf{\pink{\fbox{16 + 8 + 1 = 25}}}}

Answered by lavanya3602
2

Answer:

using method called "positions"

1. write down the binary number.

2. starting with the least significant digit(LSB - the rightmost one), multiply the digit by the value of the binary number(2) to the power of position value. continue doing this until you reach the most significant digit(MSB - the leftmost one).

3. Add all the results and that will be your decimal equivalent of the given number.

Explanation:

for example I have taken 1010 as my binary number.

step1: 1010

step2: (1 * 2³) + (0 * 2²) + (1 * 2¹) + (0 * 2⁰)

step3: (1 * 8) + (0 * 4) + (1 * 2) + (0 * 1) = 8 + 0 + 2 + 0 = 10

so, for my binary number I got 10 as decimal equivalent.

Similar questions