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:
135.318 = 1 3 5. 3 1 = 1(=001) 3(=011) 5(=101). 3(=011) 1(=001) = 001011101.0110012
answer: 135.318 = 1011101.0110012
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
1∙82+3∙81+5∙80+3∙8-1+1∙8-2 = 1∙64+3∙8+5∙1+3∙0.125+1∙0.015625 = 64+24+5+0.375+0.015625 = 93.39062510
got It: 135.318 =93.39062510
Translate the number 93.39062510 в binary like this:
the Integer part of the number is divided by the base of the new number system:
93 | 2 | | | | | | |
-92 | 46 | 2 | | | | | |
1 | -46 | 23 | 2 | | | | |
| 0 | -22 | 11 | 2 | | | |
| | 1 | -10 | 5 | 2 | | |
| | | 1 | -4 | 2 | 2 | |
| | | | 1 | -2 | 1 | |
| | | | | 0 | | |
|
the Fractional part of the number is multiplied by the base of the new number system:
|
0. | 390625*2 |
0 | .78125*2 |
1 | .5625*2 |
1 | .125*2 |
0 | .25*2 |
0 | .5*2 |
1 | .0*2 |
the result of the conversion was:
93.39062510 = 1011101.0110012
answer: 135.318 = 1011101.0110012