Binary Tutorial

Posts 1–3 of 3 · Page 1 of 1
Binary Tutorial
BINARY TUTORIAL
THIS WAS NOT LEECHED THIS IS BASED OFF MY OWN KNOWLEDGE.

First off: Binary is that 1001101101001 that you occasionally see.

QUICK OVERVIEW:
Binary is almost useless. I have actually found no reason to know binary.

Anyways, binary goes by bytes and bits (or nibbles as some call them)
But first we will start with bits, because their easier.
Example of a bit:

Q:1010? does that mean it's one-thousand-ten?
A: No! it's not!
Binary actually has a system where they can get every number possible.
It's like this:

Q: How did you get those numbers on top?
A: You multiply the digit's position (in 1000 1 would be in the 3rd position because the first one is always the 0 position) by two.

Now, before we do any conversions, lets find out what a byte is:

A byte is two bits. Easy right?
A byte would look like this:

(2 bytes would have 8 digits)
Now time for...
CONVERSIONS!!!:
Ok guys this is the fun part.

You remember the numbers on top of the other numbers? Thats like a value.
Whatcha got to do to convert the numbers is take the "value" and add it with the other numbers.
BUT, only add the value if the binary is a 1...
Ok you might be a little confused so let me show you an example:


Yay! Now you know binary!

QUIZ:
Convert the following to decimal:
1011 =
1100 =
1111 =
0010 =
01101011 =
01001010 =
10011100 =
11001110 =
Convert the following to binary:
12 =
7 =
24 =
165 =






Answers:
11
12
15
2
107
74
156
206

1100
0111
00011000
10100101

Hope you enjoyed it Please thank me
Fail... Nice oldSchool Tut =) When i first learned Binary it was when windows 98 was hip xD....
Quote Originally Posted by treeham View Post
Binary is almost useless. I have actually found no reason to know binary.
Well no wonder you think its useless. Your only doing, binary to decimal conversions. It doesnt get interesting till you start doing hexadecimal to binary conversions.

In hex each digit is equal to a nibble. so if you had a hex value
0x8FFFFFFF
that would be

1000 1111 1111 1111 1111 1111 1111 1111 binary

hex decimal conversions are important for all kinds of things in programming. a specific example might be setting a flag, but it becomes more important when you get into asm and machine language.


Oh and nice bump immortal, but its no big, as this tutorial needed some attention. Thanks for sharing treeham.
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?