View Single Post
Old 01-27-2004, 09:57 PM  
spamofon
Confirmed User
 
Join Date: Jun 2003
Location: Toronto
Posts: 2,999
Quote:
Originally posted by thekebie
Take the binary numbers and put them into groups of 3

so
111 = 7
000 = 0

The first space is worth 2^0 if it is 1, the second is worth 2^1, and the third is worth 2^2 if its value is 1 in binary.

So

001 = 1
010 = 2
100 = 4

So if you have 101 you just go 4+1 and get 5.

thanks a lot!!
spamofon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote