Thread: Do you know?
View Single Post
Old 08-09-2007, 10:33 PM   #32
Mr. Wyndham
I used to be Dragoneye...
 
Mr. Wyndham's Avatar
 
Drives: 2018 ZL1 1LE
Join Date: Jan 2007
Location: Buffalo, NY
Posts: 31,873
Send a message via AIM to Mr. Wyndham
Quote:
Originally Posted by MerF View Post
To put it simply, I teach electronics theory and maintenance to young sailors in the Navy.

Let's learn binary...once you get binary, you can get the rest from that.

Each digit of a binary value represents a value in decimal. Since there are only ones and zeros, the binary number gets pretty big pretty quickly. The way to determine what the binary number is "worth", is to see what each digit represents and add all the "1"s together.

Because, starting with the right-most digit, you double it's value. For example:

0000 = 0
0001 = 1 (the far-right digit is ALWAYS a 1!)
0010 = 2 (the second-from-the-right is ALWAYS WORTH 2, because I DOUBLED THE "1"!)
0011 = 3 (add BOTH VALUES TOGETHER [1+2] = 3!!!)
0100 = 4 (Double the value of the previous digit to get this value...2x2=4!!)
0101 = 5 (The "4" and the "1" digits are SET (1's) so we ADD THEM TOGETHER!)
0110 = 6 (The "4" and the "2" are now set (1's) so we ADD THEM TOGETHER!)

This goes on forever and always, the cycle never ever ends or changes.

So for my example I gave, 10111001...
Starting from the FAR RIGHT...so backwards from what you have always done in the past, I add together all the values that are "1", but don't forget to still double the count every single digit, even if it's a ZERO.

Sooo:

1+(skip 2 & 4, because they are "0")+8+16+32+(skip 64)+128 = THE DECIMAL VALUE OF THE BINARY NUMBER

I love being geeky.
Ohhhhhh....I get it now. Cool.
Every space to the right of - let's call it - digit X is 2X...


I swear, I'm doing this on my own, no MerF-cross-copying.

Quote:
Originally Posted by Mindz
ok, now, work this out in decimal.

4A7
1=0001
2=0010
3=0011
4=0100
5=0101
6=0110
7=0111 (not 1000)
8=1000
9=1001
10=1010
11=1011
12=1100
13=1101
14=1110
15=1111
16=10000


4= 0100
A=10=1010
7=0111

add them together: 010010100111 (IS THIS RIGHT?)

1+2+4+(8=0)+(16=0)+32+(64=0)+128+1024+(2064=0)

which all together equals: 1191


Soooo 4A7 in Hex code, converts to 1191 in decimal...or 010010100111 in binary...YEAH!!! I THINK I GOT IT!!!

Thanks guys! I know get the gist one more useless topic
__________________
"Keep the faith." - Fbodfather
Mr. Wyndham is offline   Reply With Quote