let\'s translate from binary-decimal to decimal like this:
010101000011.0101BCD= 0101 0100 0011. 0101 = 0101(=5) 0100(=4) 0011(=3). 0101(=5) = 543.5
Translate the number 543.510 в binary like this:
the Integer part of the number is divided by the base of the new number system:
543 | 2 | | | | | | | | | |
-542 | 271 | 2 | | | | | | | | |
1 | -270 | 135 | 2 | | | | | | | |
| 1 | -134 | 67 | 2 | | | | | | |
| | 1 | -66 | 33 | 2 | | | | | |
| | | 1 | -32 | 16 | 2 | | | | |
| | | | 1 | -16 | 8 | 2 | | | |
| | | | | 0 | -8 | 4 | 2 | | |
| | | | | | 0 | -4 | 2 | 2 | |
| | | | | | | 0 | -2 | 1 | |
| | | | | | | | 0 | | |
|
the Fractional part of the number is multiplied by the base of the new number system:
|
0. | 5*2 |
1 | .0*2 |
the result of the conversion was:
543.510 = 1000011111.12
answer: 010101000011.01012 = 1000011111.12