It is counting how many bits there are in a byte i think :D
Example
1 2 4 8 16 32 64 128 256
1 = 1
(so here their is 1 bit)
1 2 4 8 16 32 64 128 256
2 = 0 1
(2 bits so you place a 1 under the 2 and a 0 under the 1)
1 2 4 8 16 32 64 128 256
3 = 1 1
(3 bits so you place a 1 under the 2 and a 1 under the 1. one 1 + one 2 = 3 )
1 2 4 8 16 32 64 128 256
4 = 0 0 1
1 2 4 8 16 32 64 128 256
5 = 1 0 1
1 2 4 8 16 32 64 128 256
6 = 0 1 1
and so on :)
i think that's answered your question :D
Chat with our AI personalities
yes
The only two numbers that represent a binary digit are 0 and 1
Infinity is not directly represented in binary code. Binary code uses a finite number of bits to represent numbers, so it is not capable of representing infinity. However, there are ways to approximate infinity in binary code, such as using a special bit pattern to represent a very large number.
0 and 1 are two integers. They may represent binary digits or binary data but they need not.
(27)decimal = (1 1 0 1 1)binary