Here is a rather lengthy video (30min) giving you a nice explanation of conversion between different bases.
The actual discussion of Binary Coded Decimals (BCD) starts near the end of the video.
https://www.youtube.com/watch?v=L2zsmYaI5ww
How do we convert 1111010.11(binary) to decimal by first representing it in BCD form and then converting it to decimal
An example given in the note has divided the integer part of the given binary number by 1010 successively and multiplied the fractional part of the given binary number by 1010 successively , to convert it to BCD form , as the first step.
Then that result is converted in to decimal.
Could anyone please explain,
the reason of multiplying and dividing the given binary number by 1010?
And how to convert a binary number to a BCD form by doing that?
Many thanks!
3 answers
1111010.11
1111010 + .11
0*2*0 + 1*2^1 + 0*2^2 + 1*2^3 + 1*2^4 + 1*2^5 +1*2^6 + 1*2^-1 +1*2^-2
0 + 2 + 4 + 8 + 16 + 32 + 64 + 1/2 + 1/4
1111010 + .11
0*2*0 + 1*2^1 + 0*2^2 + 1*2^3 + 1*2^4 + 1*2^5 +1*2^6 + 1*2^-1 +1*2^-2
0 + 2 + 4 + 8 + 16 + 32 + 64 + 1/2 + 1/4
going to BCD is a chore, but once you have that, you can just read off the decimal digits.