View Single Post
Old 10-23-2002, 11:57 AM   #7
homer15
Resident Slacker
 
homer15's Avatar
 
Join Date: Dec 2001
Location: Suisun City, California (i know, where the hell is that?!?!?)
Posts: 2,620
sometimes, i like to look at decimal to binary as sort of using a filter.


you start with 512:
___
______
__________
_____________
_________________
___________________
______________________
________________________
__________________________
________________________________
________________________________
__________________________ 1
________________________ 2
______________________ 4
___________________ 8
________________ 16
_____________ 32
__________ 64
______ 128
___ 256
512



you take your number, whatever it is, and slide it through the filter. the filter takes out the chunck that it's alotted and moves it down. for each chunk taken, a 1 is placed under the value.
like, say you had 176. slide it through the filter, and 128 takes a chunk, 32 takes a chunk, and 16 takes a chunk. leaving the binary number 0010110000.
i know it's sort of stupid, but sometimes looking at things in a different way like this helps me out.
__________________
Friends help you move. REAL friends help you move bodies. - me
quite possibly the best book ever written... by me
homer15 is offline   Reply With Quote