Jump to content

Binary!


Ste

Recommended Posts

Im just learning some stuff, and I hit Binary.

 

Anyone Completly Understand it cause I don't

 

http://www.pccomputernotes.com/numbering/numbering02.htm

 

10001001 is equal to 137

 

Now let me get this staright.

So,then,

 

0001001 is equal to 10

 

So 128 + (Binary) 0001001 is equal to 137?

 

So is this is true

From Left to right,

 

1's, 2's, 4's, 8's, 16's, 32's, 64's, 128's, 256's.

 

So Ill make up a random Binary Number and someone tell me If I am right?

 

100100110 would be equal to 2,563,242

 

Or do we add those number like, 256+32+4+2

so That equals 294?

Edited by Ste

Share this post


Link to post
Share on other sites

  • Replies 29
  • Created
  • Last Reply

Top Posters In This Topic

take some cisco classes and you'll become more familiar with binary than you ever would have wanted to be. After a while its just another number system and it becomes second nature. Fun stuff :)

Share this post


Link to post
Share on other sites

So was I right though?. Oh and what happens if we get binary like this.

010101011111100011010111001111001010

 

After each Set of 9 they are separted then added together latter for total or what?

It would be

 

010101011 + 111100011 + 010111001 + 111001010

 

Correct?

 

Hey this is fun!

Share this post


Link to post
Share on other sites

no no no.....

binary goes in sets of 8. sets of 4 are nibbles. two nibbles are a byte. each number is a bit. It goes like this:

128 64 32 16 8 4 2 1.

 

so if you get a number like

01110011

then you add up the corresponding bits.

so

01110011 = 57. Just add up each one.

 

11111111 = 255, not 511.

 

Let me know if i can help clarify anything better, or if you have any more questions.

I can do hex too, let me know if you need help on it.

 

oh and for the 137 thing...

 

after you hit 128, it goes to 256, then 512, etc etc. so add up the 9 bits for that, itll = 137

Share this post


Link to post
Share on other sites

How is 01110011

 

57 is

0+2+4+8+0+0+64+128

 

?????

 

ok

 

1 2 4 8 16 32 64 128 256 512

 

0 1 1 1 0 0 1 1 0 0

 

 

0+2+4+8+0+0+64+128+0+0

 

 

Like that?

 

cause if thats added up its not 57... its 206.

 

Oh Its opposite

 

so

 

512 256 128 64 32 16 8 4 2 1

 

I don't see how though

if all 9 are 1's that its 255.

Edited by Ste

Share this post


Link to post
Share on other sites

binary doesn't go in sets of 8 lol...

 

ok... binary is a base 2 number system so the numbers ascend by a power of 2...

 

2^0 = 1

2^1 = 2

2^2 = 4

2^3 = 8

 

and so on

 

decimal ascends by a power of 10

 

10^0 = 1

10^1 = 10

10^2 = 100

10^3 = 1000

 

and so on...

 

so if you had 3172 in decimal it equals

 

3x (1000) = 3000

+

1x (100) = 100

+

7x (10) = 70

+

2x (1) = 2

 

= 3000 + 100 + 70 + 2 = 3172

 

get it?

 

so binary is just the value of each place added together, just like decimal

 

so 1010 is

 

1x (8) = 8

+

0x (4) = 0

+

1x (2) = 2

+

0x (1) = 0

 

= 8 + 0 + 2 + 0 = 10 (decimal)

Share this post


Link to post
Share on other sites

Yes I completly with you On that part but which way does it go

low to high or high to low

1,2,4 Etc?

4,2,1 Etc?

 

so

 

111111111

1+2+4+8+16+32+64+128+256

Correct

=511 deciamal.

Share this post


Link to post
Share on other sites

take some cisco classes and you'll become more familiar with binary than you ever would have wanted to be.  After a while its just another number system and it becomes second nature.  Fun stuff :)

449838[/snapback]

 

Very true. Bin to Dec is not that bad. The pen and paper method works well if you can't do it in Ur head. It works for me. I hate Hex. Sebnetting hurts. IMHO

Share this post


Link to post
Share on other sites

I learned binary in like 5th grade, easy peasy.

I also memorized the 1 10 100 1000 etc.s, you all probly know them too from computers (1, 2, 4, 8, 16, 32, 64, 128, etc.)

 

Its easy once you get the hang of it... hmm lemme make up some number then lets see who can convert it first! (no converter programs! :D) OK here:

1) 7265308762001

and

2)1001101110100111010110

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...