10110
Chat with our AI personalities
To convert from decimal to binary, keep dividing by two, recording the remainder from right to left (% is the symbol for the remainder after dividing): 22 % 2 = 0 ... "0" 11 % 2 = 1 ... "10" 5 % 2 = 1 ... "110" 2 % 2 = 0 ... "0110" 1 % 2 = 1 ... "10110" So 22 in base 10 is 10110 in base 2 (binary).
No - the eight-bit binary code for 53 is 00110101 - if counting the binary number, when increasing the powers of two which you add together, you have written the indices at the top of the column in the wrong direction - it is the rightmost digit which starts at 20, increasing to 21, 22, 23, etc...
1102 = 1*22 + 1*21 + 0*20 = 4 + 2 + 0 = 6
The sum of binary numbers is also a binary number.
Invalid binary!