answersLogoWhite

0

I do not know a specific formula to do it. but its very simple. really really simple

lets get a binary code = 10011101

now, we are going to convert this to decimal. You should start it from the last binary number in the given code,(right hand corner)

then multiply that number from 2 to the power of 0( 2^0)

1* (2^0) = 1* 1 = 1 --------- (A)

then we go to the next binary number. (which is 0 in this case)

now we must multiply this from 2 to the power 1. (2^1);

0 * (2^1) = 0* 2 = 0 --------(B)

do this sequentially till the first number. (multiplying from 2^2,2^3,...,2^7)

similarly you get,

1 * (2^2) = 4 ----(C)

1 * (2^3) = 8 ----(D)

1 * (2^4) = 16 ----(E)

0 * (2^5) = 0 ------(F)

0 * (2^6) = 0-----(G)

1 * (2^7) = 128----(H)

now, add the values you got in equation A,B,C,D,E,F,G,H

1+0+4+8+16+0+0+128 = 157; so this is the decimal number for the given binary code.

hope you got it!!

User Avatar

Wiki User

13y ago

What else can I help you with?