In: Computer Science
Convert the following binary number to dotted decimal format.
11000000100110010000100101011001
192.153.9.89 Explanation: ------------- 11000000.10011001.00001001.01011001 Let's convert all octets to decimal separately Converting 11000000 to decimal Converting 11000000 to decimal 11000000 => 1x2^7+1x2^6+0x2^5+0x2^4+0x2^3+0x2^2+0x2^1+0x2^0 => 1x128+1x64+0x32+0x16+0x8+0x4+0x2+0x1 => 128+64+0+0+0+0+0+0 => 192 11000000 in decimal is 192 Converting 10011001 to decimal Converting 10011001 to decimal 10011001 => 1x2^7+0x2^6+0x2^5+1x2^4+1x2^3+0x2^2+0x2^1+1x2^0 => 1x128+0x64+0x32+1x16+1x8+0x4+0x2+1x1 => 128+0+0+16+8+0+0+1 => 153 10011001 in decimal is 153 Converting 00001001 to decimal Converting 00001001 to decimal 00001001 => 0x2^7+0x2^6+0x2^5+0x2^4+1x2^3+0x2^2+0x2^1+1x2^0 => 0x128+0x64+0x32+0x16+1x8+0x4+0x2+1x1 => 0+0+0+0+8+0+0+1 => 9 00001001 in decimal is 9 Converting 01011001 to decimal Converting 01011001 to decimal 01011001 => 0x2^7+1x2^6+0x2^5+1x2^4+1x2^3+0x2^2+0x2^1+1x2^0 => 0x128+1x64+0x32+1x16+1x8+0x4+0x2+1x1 => 0+64+0+16+8+0+0+1 => 89 01011001 in decimal is 89 ==================================================================================== || 11000000.10011001.00001001.01011001 in decimal notation is 192.153.9.89 || ====================================================================================