This transfer is possible in two ways: direct transfer and using the decimal system.
first, let\'s make a direct transfer.
let\'s do a direct translation from octal to binary like this:
156.78 = 1 5 6. 7 = 1(=001) 5(=101) 6(=110). 7(=111) = 001101110.1112
answer: 156.78 = 1101110.1112
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
1∙82+5∙81+6∙80+7∙8-1 = 1∙64+5∙8+6∙1+7∙0.125 = 64+40+6+0.875 = 110.87510
got It: 156.78 =110.87510
Translate the number 110.87510 в binary like this:
the Integer part of the number is divided by the base of the new number system:
110 | 2 | | | | | | |
-110 | 55 | 2 | | | | | |
0 | -54 | 27 | 2 | | | | |
| 1 | -26 | 13 | 2 | | | |
| | 1 | -12 | 6 | 2 | | |
| | | 1 | -6 | 3 | 2 | |
| | | | 0 | -2 | 1 | |
| | | | | 1 | | |
|
the Fractional part of the number is multiplied by the base of the new number system:
|
0. | 875*2 |
1 | .75*2 |
1 | .5*2 |
1 | .0*2 |
the result of the conversion was:
110.87510 = 1101110.1112
answer: 156.78 = 1101110.1112