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:
357.258 = 3 5 7. 2 5 = 3(=011) 5(=101) 7(=111). 2(=010) 5(=101) = 011101111.0101012
answer: 357.258 = 11101111.0101012
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
3∙82+5∙81+7∙80+2∙8-1+5∙8-2 = 3∙64+5∙8+7∙1+2∙0.125+5∙0.015625 = 192+40+7+0.25+0.078125 = 239.32812510
got It: 357.258 =239.32812510
Translate the number 239.32812510 в binary like this:
the Integer part of the number is divided by the base of the new number system:
239 | 2 | | | | | | | |
-238 | 119 | 2 | | | | | | |
1 | -118 | 59 | 2 | | | | | |
| 1 | -58 | 29 | 2 | | | | |
| | 1 | -28 | 14 | 2 | | | |
| | | 1 | -14 | 7 | 2 | | |
| | | | 0 | -6 | 3 | 2 | |
| | | | | 1 | -2 | 1 | |
| | | | | | 1 | | |
|
the Fractional part of the number is multiplied by the base of the new number system:
|
0. | 328125*2 |
0 | .65625*2 |
1 | .3125*2 |
0 | .625*2 |
1 | .25*2 |
0 | .5*2 |
1 | .0*2 |
the result of the conversion was:
239.32812510 = 11101111.0101012
answer: 357.258 = 11101111.0101012