Normal decimal numbers are based on powers of 10. The individual digits are (from right to left):
ones (10^0),
tens (10^1),
hundreds (10^2),
etc.
So, 365 is really 5 ones, plus 6 tens, plus 3 hundreds. 5 + 60 + 300 = 365
Binary numbers are based on powers of two. The individual bits (Binary digITS) are:
ones (2^0),
twos (2^1),
fours (2^2),
eights (2^3),
etc.
So, your binary 00110 is really 0 ones, plus 1 twos, plus 1 fours. 0 + 2 + 4 = 6 your 00110 binary is equal to 6 decimal.
Chat with our AI personalities
0 = 00000 1 = 00001 2 = 00010 3 = 00011 4 = 00100 5 = 00101 6 = 00110 7 = 00111 8 = 01000 9 = 01001 10 = 01010 11 = 01011 12 = 01100 13 = 01101 14 = 01110 15 = 01111 16 = 10000 17 = 10001 18 = 10010 19 = 10011 20 = 10100
01 = 00001 11 = 01011 21 = 10101 02 = 00010 12 = 01100 22 = 10110 03 = 00011 13 = 01101 23 = 10111 04 = 00100 14 = 01110 24 = 11000 05 = 00101 15 = 01111 25 = 11001 06 = 00110 16 = 10000 26 = 11010 07 = 00111 17 = 10001 27 = 11011 08 = 01000 18 = 10010 28 = 11110 09 = 01001 19 = 10011 29 = 11101 10 = 01010 20 = 10100 30 = 11111