Gremmie wrote:
Laar wrote:
ursaminor wrote:
DilbertIRL wrote:
There are 10 kinds of people.
Those who understand binary and those who don't.
This is actually wrong, because the first is 2^0 and everything to the power of zero is one, so there is 1 type of people. Actually you should say there are 01 types of people because the second is 2^1 and that is 2.
no it´s quite right, as 2 is 10 in binary, you shouldn't think about what is the first and what is the second
Apparently it depends if you're using a big-endian or little-endian system or something. To general non-coding plebs like myself, 10 is read as [(1*(2^1))+(0*(2^0))] therefore the joke works. If I've got this wrong apologies, my main source is listening to an argument at a pub quiz.
This is getting a bit off-topic, but still...
Binary is just like decimal except that each digit has only 2 possible values, 0 or 1.
In decimal (base 10), the first (rightmost) digit represent multiples of 1 (10^0), the second represents multiples of 10 (10^1), the third multiples of 100 (10^2) and so on, therefore 10 is 1 ten and 0 ones.
In binary (base 2), the first still represents multiples of 1 (2^0), but the second now represents multiples of 2 (2^1), and the third multiples of 4 (2^2) and so on, therefore 10 is 1 two and 0 ones.
So, in binary 0=0, 1=1, 2=10, 3=11, 4=100, 5=101, 6=110, 7=111 ...
Big-endian or little-endian only comes into play in computers (or digital electronics), and is a result of the way the memory and/or processor organises the bits and bytes. Endian-ness does not affect the number base for which the convention is least significant digits on the right, most significant digits on the left.