English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

need help on a theory..
ive heard that there are 64 variations of Binary code from 00000000 to 11111111...but i can see there are way more..how many ways are there and if they could explain it.

2007-03-13 10:35:10 · 3 answers · asked by Paul.A 1 in Computers & Internet Programming & Design

3 answers

each digit can be either 0 or 1, and there are 8 of them, so there are 2^8 = 256 combinations.

2007-03-13 10:42:12 · answer #1 · answered by Anonymous · 1 0

you heard wrong. Binary is just a way to represent numbers. Since numbers are infinite there are an infinite number of binary numbers too.

in a x-bit number (a 1 or 0 x number of times) there are 2^x possible combinations. the example you gave has 8 bits so there are 256 possible combinations.

If you have a 64 bit number that's 2^64 possible combinations. which is the same as 18446744073709551616.

2007-03-13 17:46:36 · answer #2 · answered by tster 1 · 0 0

(2^N)-1 = max value
where N = number of bits

(2^N) would then equal the number of combinations including zero
8 bit word 2^8 = 256
6 bit word 2^6 = 64

If you are thinking about serial communications then you would have to remove a START bit and a STOP bit
from your N count as these are not considered data, this leaves you with 6 bits of data. And unless your communication with an old teletype its rare to use a 6bit data protocol

2007-03-13 18:46:06 · answer #3 · answered by MarkG 7 · 0 0

fedest.com, questions and answers