Nov 22, 2009
Pages: 1, 2

Learn To Count In Binary

free web hosting

Read Latest Entries..: (Post #19) by flashy on Mar 6 2009, 05:21 PM.
QUOTE (galexcd @ Feb 15 2009, 02:29 AM) I'm probably a little late on this but I'd figure I'd dump some of my knowledge here, since this is my major after all. Why do computers use binary? It would be far too inaccurate to use any other base. Base 3 may have worked (no voltage/low voltage/high voltage), but there are a lot less mistakes made when just using two values: no voltage and high voltage. Imagine if imperfections in the output of the power supply could cause bit...
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > MODERATED AREA > Tutorials

Learn To Count In Binary

flashy
Basically i am going to teach you how to count in binary smile.gif

It is more typical to use a 4 bit rather than the standard 8 bit (ie. 0001 is 1, is much easier to understand 00000001)

Now binary digits are doubled each place value of the group, for example;
The first digit 0000 has a value of 1
The second digit 0000 has a value of 2
The third digit 0000 has a value of 4
The fourth digit 0000 has a value of 8

And it would go on if you were to have more bits.

So basically, we should already know that binary consists of two objects; either an ON or an OFF. It is usually represented in 0s and 1s - 1 stands for ON and 0 stands for OFF.

So a binary 1 would be this: 0001
A binary 2 would be: 0010, since the second digit of the values has a value of 2 so we dont need any others
A binary 3 would be: 0011, since we need the second AND the first digit to make 3
A binary 4 would be: 0100, since the value of the third one is equal to 4.
A binary 5 would be: 0101 - get it now?

So it is quite easy to pick up, and since we are using 4 bit binary we could only get a maximum number of 15 - however, an 8 bit (1 byte) binary number would consist of MUCH more.

And so now i will show you how to get the number 123 - its really just maths
00000001: 1
00000010: 2
00000100: 4
00001000: 8
00010000: 16
00100000: 32
01000000: 64
10000000: 128

01111011 - and there we have it biggrin.gif - 64+32+16+8+2+1 = 123

--

© - Pecky productions (lol) - no sources involved, just my head and clever computer science wink.gif
ONLY FOR PUBLISH FOR SCRIPT-CENTER.com|WHS|Trap17

 

 

 


Comment/Reply (w/o sign-up)

fadillzzz
QUOTE (flashy @ Feb 5 2009, 01:49 AM) *
Basically i am going to teach you how to count in binary smile.gif

It is more typical to use a 4 bit rather than the standard 8 bit (ie. 0001 is 1, is much easier to understand 00000001)

Now binary digits are doubled each place value of the group, for example;
The first digit 0000 has a value of 1
The second digit 0000 has a value of 2
The third digit 0000 has a value of 4
The fourth digit 0000 has a value of 8

And it would go on if you were to have more bits.

So basically, we should already know that binary consists of two objects; either an ON or an OFF. It is usually represented in 0s and 1s - 1 stands for ON and 0 stands for OFF.

So a binary 1 would be this: 0001
A binary 2 would be: 0010, since the second digit of the values has a value of 2 so we dont need any others
A binary 3 would be: 0011, since we need the second AND the first digit to make 3
A binary 4 would be: 0100, since the value of the third one is equal to 4.
A binary 5 would be: 0101 - get it now?

So it is quite easy to pick up, and since we are using 4 bit binary we could only get a maximum number of 15 - however, an 8 bit (1 byte) binary number would consist of MUCH more.

And so now i will show you how to get the number 123 - its really just maths
00000001: 1
00000010: 2
00000100: 4
00001000: 8
00010000: 16
00100000: 32
01000000: 64
10000000: 128

01111011 - and there we have it biggrin.gif - 64+32+16+8+2+1 = 123

--

© - Pecky productions (lol) - no sources involved, just my head and clever computer science wink.gif
ONLY FOR PUBLISH FOR SCRIPT-CENTER.com|WHS|Trap17

i have never learn anything about binary, but now that i have read your post i'm starting to understand it

 

 

 


Comment/Reply (w/o sign-up)

ackotheadvertiser
Wow, this is good, thanks a lot. You can count in binary to billion or something? If we can count in binary, how can it help us? The computers use only binary numbers, 0 and 1. Why is that? Have human made them to do that? This seems really educational and I'll apprechiate if you answer these few questions of mine.

Comment/Reply (w/o sign-up)

Veradesigns
yup they teaching me this is java programing its pretty easy unless they want you to do a 10101010101010111110100101010101010101010101010010101010101010101010101010101010

101010101010
That's my homework to figure out what that is lol...
also they said to figure out a something lol...i don't know but ill see java programing is OK but the way you count numbers in computer language is crazy.

Comment/Reply (w/o sign-up)

Ash-Bash
Wow thanks,This is a good tutorial on how to do it, I have never found somthing so help-full for this game.

Keep up the good work and post many more biggrin.gif

Comment/Reply (w/o sign-up)

bittr
laugh.gif

And I'm going to teach you how to multiply in binary.
It's actually pretty simple, if you know how to do it normally (in decimal) tongue.gif

So, in decimal it would be, let's say 105 * 23:

--105 *
----23
_____
--315
210
_____
2415


If you are used to that, in binary it's the same idea:

----1011 *
------101
_______
----1011
1011
_______
110111

1011 is 8 + 2 + 1 = 11 in decimal.
101 is 4 + 1 = 5 in decimal.
Now, if we multiply in decimal, 11 * 5 = 55, which is exactly our result in binary, 110111.


(I used the "-" signs to align the numbers right, as spaces aren't rendered correctly)

Comment/Reply (w/o sign-up)

Ash-Bash
QUOTE (bittr @ Feb 7 2009, 12:04 PM) *
laugh.gif

And I'm going to teach you how to multiply in binary.
It's actually pretty simple, if you know how to do it normally (in decimal) tongue.gif

So, in decimal it would be, let's say 105 * 23:

--105 *
----23
_____
--315
210
_____
2415


If you are used to that, in binary it's the same idea:

----1011 *
------101
_______
----1011
1011
_______
110111

1011 is 8 + 2 + 1 = 11 in decimal.
101 is 4 + 1 = 5 in decimal.
Now, if we multiply in decimal, 11 * 5 = 55, which is exactly our result in binary, 110111.


(I used the "-" signs to align the numbers right, as spaces aren't rendered correctly)


hmmm this has got a bit confusing for the minute so I think I will have to come back to that later or my head will explode tongue.gif

Comment/Reply (w/o sign-up)

Echo_of_thunder
QUOTE (Ash-Bash @ Feb 7 2009, 08:19 AM) *
hmmm this has got a bit confusing for the minute so I think I will have to come back to that later or my head will explode tongue.gif


A little bit? I am still trying to figure out why 1+1=2 lol. No joke though. Very nice info that I know a lot of us need to know. thanks

Comment/Reply (w/o sign-up)

flashy
QUOTE (ackotheadvertiser @ Feb 7 2009, 11:38 AM) *
Wow, this is good, thanks a lot. You can count in binary to billion or something? If we can count in binary, how can it help us? The computers use only binary numbers, 0 and 1. Why is that? Have human made them to do that? This seems really educational and I'll apprechiate if you answer these few questions of mine.


You can count in binary to billion or something?
You can have bigger than 8 bits, but 8 is the standard.

If we can count in binary, how can it help us?
Because computers were designed and made to do calculations extremely fast

The computers use only binary numbers, 0 and 1. Why is that?
1 and 0 is just another way of saying ON and OFF. It is the principle of transistors and harddrives. Harddrives are made up of billions of tiny little iron filing like magnets, and when a bit is on then the filing would stand up by a magnetic field, and when it is off it is laid flat.
Transistors use 0s and 1s because they are a resistor and a conductor at the same time, so its like that, 1 = Conductor - 0 = Resistor.
Its just another way of putting it.

Have human made them to do that?
Its the only and best way to do it.

--

I hope i answered your q's biggrin.gif
And thanks all for the comments smile.gif

Comment/Reply (w/o sign-up)

Quatrux
Every computers works in binary, even though there were other methods to, but they never got popular, it does not matter if the numbering is in binary, octal, hex or decimal, you can achieve the same numbers in interval (-oo;+oo)

binary is the easiest method, because only with 0 and 1 you can achieve anything, by as said ON, OFF, 1, 0, true, false.. all the circuit boards works like that I guess by on, off and all the conditions evaluate by it, I mean OR, AND, NOT, OR NOT, AND NOT.. which is quite amazing when you think of it.. Easiest and simplest things can do amazing things biggrin.gif a little bit of topic, for example DirectX and all the objects when you play games is drawn only by triangles, everything you see is triangles, with triangles you can achieve any form you want and those triangles are made from lines and lines are made from two points and a point can be a pixel biggrin.gif

I remember we learnt binary, hex, octal and decimal numbers in university 1 semester, it was a pain in the start, we needed to know what number is what, to multiply them, to convert them and do everything with them on paper, the hardest part for me was division for binary numbers, everything else was quite simple when you get the point how numbers work.. tongue.gif

Comment/Reply (w/o sign-up)

Latest Entries

flashy
QUOTE (galexcd @ Feb 15 2009, 02:29 AM) *
I'm probably a little late on this but I'd figure I'd dump some of my knowledge here, since this is my major after all. Why do computers use binary? It would be far too inaccurate to use any other base. Base 3 may have worked (no voltage/low voltage/high voltage), but there are a lot less mistakes made when just using two values: no voltage and high voltage. Imagine if imperfections in the output of the power supply could cause bits to be changed. Reads and writes to memory could never be trusted and probably would cause the operating system to crash if the wrong value of memory was passed to it, especially while booting.

You can learn a lot more about how exactly the computer uses binary when you take a look at the way the ALU works inside a CPU, or when you look at the connection between the CPU and RAM. If you look at the wiring between the CPU and RAM you will find many connections that can be grouped into different busses. The address bus usually consists of about 32 bits. Each of these bits is actually a wire with either voltage (on) or no voltage (off). These 32 bits can be interpreted as a 32 digit binary number, which tells the RAM which memory location the CPU wishes to either read from or write to. Next you have the Data bus, and the Read/Write bus. When the Read/Write bus is on, it tells the ram that it wishes to write whatever value is being passed to it over the data bus, and it writes this to whichever location is being sent by the address bus. When the Read/Write bus is off it tells the ram that it wants the ram to pass whatever value resides at the address that the address bus is passing to it over the data bus.


Another great example is if you look at the chip design. Specifically of the ALU and how it gets and sends its data. On a two-bus architecture the ALU will traditionally get both inputs from either bus, then it will calculate and store the result in a register designated to storing the result. At each connection to the busses the ALU and registers have gates which either allow voltage to pass through or not. Things could get quite confusing if instead of using binary (on/off) computers used base 3 (low/high/off), and the more bases the worse it would be.


Now with that out of the way, I'd like to say shame on all of you who hear binary and immediately start talking about computers. Sure computers use Base 2, but binary is something mathematical, and you should take a mathematical approach to learning it. You should actually look up what bases actually mean and learn to count in any base, not just base 2.


Wow thanks for that smile.gif

and thankyou anheizhiye smile.gif

Comment/Reply (w/o sign-up)

anheizhiye
Well,you give a easy and good idea for this !hehe
thanks you very much!
I learned a lot from you !!! hehe smile.gif

Good luck to you smile.gif

Comment/Reply (w/o sign-up)

galexcd
I'm probably a little late on this but I'd figure I'd dump some of my knowledge here, since this is my major after all. Why do computers use binary? It would be far too inaccurate to use any other base. Base 3 may have worked (no voltage/low voltage/high voltage), but there are a lot less mistakes made when just using two values: no voltage and high voltage. Imagine if imperfections in the output of the power supply could cause bits to be changed. Reads and writes to memory could never be trusted and probably would cause the operating system to crash if the wrong value of memory was passed to it, especially while booting.

You can learn a lot more about how exactly the computer uses binary when you take a look at the way the ALU works inside a CPU, or when you look at the connection between the CPU and RAM. If you look at the wiring between the CPU and RAM you will find many connections that can be grouped into different busses. The address bus usually consists of about 32 bits. Each of these bits is actually a wire with either voltage (on) or no voltage (off). These 32 bits can be interpreted as a 32 digit binary number, which tells the RAM which memory location the CPU wishes to either read from or write to. Next you have the Data bus, and the Read/Write bus. When the Read/Write bus is on, it tells the ram that it wishes to write whatever value is being passed to it over the data bus, and it writes this to whichever location is being sent by the address bus. When the Read/Write bus is off it tells the ram that it wants the ram to pass whatever value resides at the address that the address bus is passing to it over the data bus.


Another great example is if you look at the chip design. Specifically of the ALU and how it gets and sends its data. On a two-bus architecture the ALU will traditionally get both inputs from either bus, then it will calculate and store the result in a register designated to storing the result. At each connection to the busses the ALU and registers have gates which either allow voltage to pass through or not. Things could get quite confusing if instead of using binary (on/off) computers used base 3 (low/high/off), and the more bases the worse it would be.


Now with that out of the way, I'd like to say shame on all of you who hear binary and immediately start talking about computers. Sure computers use Base 2, but binary is something mathematical, and you should take a mathematical approach to learning it. You should actually look up what bases actually mean and learn to count in any base, not just base 2.

Comment/Reply (w/o sign-up)

flashy
QUOTE (Ash-Bash @ Feb 10 2009, 05:52 PM) *
Thank you networker!!!! biggrin.gif I can do it now so easy biggrin.gif biggrin.gif biggrin.gif Thank you!!!!!!!!!

Damn that site is good go check it out if you was confused like me.


hmm that is a good site biggrin.gif

I used my special binary counting skills and i managed to make a colour that worked from binary biggrin.gif

Comment/Reply (w/o sign-up)

Ash-Bash
Thank you networker!!!! biggrin.gif I can do it now so easy biggrin.gif biggrin.gif biggrin.gif Thank you!!!!!!!!!

Damn that site is good go check it out if you was confused like me.

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : Binary


    Looking for Learn, To, Count, In, Binary

Searching Video's for Learn, To, Count, In, Binary
See Also,
advertisement


Learn To Count In Binary

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com