posted 24 years ago
bala_chocos,
vishak is right.
63 decimal = 00111111 binary.
When you convert to binary, the same principles apply as in decimal numbers.
Start with the decimal number 63.
There is nothing in the hundredes position, a 6 in the tens position and a 3 in the ones position.
So we get
(6 * (10^1)) + (3 * (10^0)) =
(6 * 10) + (3 * 1) = 63.
The same logic applies for binary, but now instead of going by powers of 10 we go by powers of 2. Instead of having ones, tens, hundreds, thousands, etc. positions, we have ones, twos, fours, eights, sixteens, etc. positions.
So, getting back to the decimal number 63. In binary we have:
0 in the sixty-fours position
1 in the thirty-twos position
1 in the sixteens position
1 in the eights position
1 in the fours position
1 in the twos position
1 in the ones position
So:
(1 * (2^5)) +
(1 * (2^4)) +
(1 * (2^3)) +
(1 * (2^2)) +
(1 * (2^1)) +
(1 * (2^0)) =
(1 * 32) + (1 * 16) + (1 * 8) + (1 * 4) + (1 * 2) + (1 * 1) = 63;
00111111 binary = 63 decimal
Hope this helps.
Stephanie