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:
246.1258 = 2 4 6. 1 2 5 = 2(=010) 4(=100) 6(=110). 1(=001) 2(=010) 5(=101) = 010100110.0010101012
answer: 246.1258 = 10100110.0010101012
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
2∙82+4∙81+6∙80+1∙8-1+2∙8-2+5∙8-3 = 2∙64+4∙8+6∙1+1∙0.125+2∙0.015625+5∙0.001953125 = 128+32+6+0.125+0.03125+0.009765625 = 166.16601562510
got It: 246.1258 =166.16601562510
Translate the number 166.16601562510 в binary like this:
the Integer part of the number is divided by the base of the new number system:
166 | 2 | | | | | | | |
-166 | 83 | 2 | | | | | | |
0 | -82 | 41 | 2 | | | | | |
| 1 | -40 | 20 | 2 | | | | |
| | 1 | -20 | 10 | 2 | | | |
| | | 0 | -10 | 5 | 2 | | |
| | | | 0 | -4 | 2 | 2 | |
| | | | | 1 | -2 | 1 | |
| | | | | | 0 | | |
|
the Fractional part of the number is multiplied by the base of the new number system:
|
0. | 166015625*2 |
0 | .33203*2 |
0 | .66406*2 |
1 | .32813*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:
166.16601562510 = 10100110.0010101012
answer: 246.1258 = 10100110.0010101012