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).
Chat with our AI personalities
The number 21 in binary is 10101
10010102 = (in base 10) 26 + 23 + 21 = 64 + 8 + 2 = 74
The number 21 in binary is 10101
It is 15 in base 10.
109 base 10