Translate the number 192.168.1.10010 в binary like this:
the Integer part of the number is divided by the base of the new number system:
192 | 2 | | | | | | | |
-192 | 96 | 2 | | | | | | |
0 | -96 | 48 | 2 | | | | | |
| 0 | -48 | 24 | 2 | | | | |
| | 0 | -24 | 12 | 2 | | | |
| | | 0 | -12 | 6 | 2 | | |
| | | | 0 | -6 | 3 | 2 | |
| | | | | 0 | -2 | 1 | |
| | | | | | 1 | | |
|
the Fractional part of the number is multiplied by the base of the new number system:
|
0. | 168.1.100*2 |
0 | .336*2 |
0 | .672*2 |
1 | .344*2 |
0 | .688*2 |
1 | .376*2 |
0 | .752*2 |
1 | .504*2 |
1 | .008*2 |
0 | .016*2 |
0 | .032*2 |
the result of the conversion was:
192.168.1.10010 = 11000000.00101011002
answer: 192.168.1.10010 = 11000000.00101011002