|
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.
|