This is topic How do I read binary? in forum Ask a Geek! at The Geek Culture Forums!.


To visit this topic, use this URL:
http://www.geekculture.com/cgi-bin/ultimatebb/ultimatebb.cgi?ubb=get_topic;f=12;t=002320

Posted by Tiroth (Member # 8543) on May 29, 2007, 13:45:
 
Can someone post a link to a site that can teach me please? Thanks in advance.

-Tiroth
 
Posted by spungo (Member # 1089) on May 29, 2007, 13:53:
 
There is a DOS utility called 'list.com' which will give you a readable hex dump. Try googling it. If you're using OSX, then pop up a terminal -- the system should have 'od' or something similar.
 
Posted by dragonman97 (Member # 780) on May 29, 2007, 14:04:
 
That presumes it's not a reference to silly binary. [Wink]

i.e. 01000001->41->A
(I'm not adequately bored to write something in 'binary'. [Razz] )
 
Posted by Tiroth (Member # 8543) on May 29, 2007, 14:07:
 
0100110011101000100001001100110100110100
I think this means: Is this it?
a site i found said the digits are
16,8,4,2,1 on the bytes
 
Posted by Grummash (Member # 4289) on May 29, 2007, 14:10:
 
Tiroth asks: How do I read binary?

... from right to left. [Wink]
 
Posted by spungo (Member # 1089) on May 29, 2007, 14:13:
 
quote:
Originally posted by Grummash:
Tiroth asks: How do I read binary?

... from right to left. [Wink]

Oooh -- I hear an endianness war a-brewing...
 
Posted by Tiroth (Member # 8543) on May 29, 2007, 14:34:
 
I'm getting confused [Confused] [crazy]

-Tiroth
 
Posted by Steen (Member # 170) on May 29, 2007, 14:36:
 
Tiroth wrote:
Can someone post a link to a site that can teach me please? Thanks in advance.

http://en.wikipedia.org/wiki/Binary_numeral_system

Once you understand how numbers are represented in binary, then you can move on to what those numbers might mean if they represent ASCII characters, ANSI characters, unicode characters and the like.
 
Posted by Tiroth (Member # 8543) on May 29, 2007, 14:44:
 
wikipedia just made me more confused. [crazy] [Confused]
 
Posted by The Famous Druid (Member # 1769) on May 29, 2007, 15:00:
 
quote:
Originally posted by Tiroth:
0100110011101000100001001100110100110100
I think this means: Is this it?
a site i found said the digits are
16,8,4,2,1 on the bytes

Taking the rightmost 8 digits from your example

0 0 1 1 0 1 0 0
---------------
1 6 3 1 8 4 2 1
2 4 2 6
8

= 32 + 16 + 4 = 52
 
Posted by Tiroth (Member # 8543) on May 29, 2007, 15:05:
 
well how do i turn that into letters?
 
Posted by WinterSolstice (Member # 934) on May 29, 2007, 15:06:
 
http://www.asciitable.com/
 
Posted by Steen (Member # 170) on May 29, 2007, 15:12:
 
Did you read the "binary simplified" section? Skip over the top part of the Wikipedia page to that and start there if you haven't.
 
Posted by The Famous Druid (Member # 1769) on May 29, 2007, 16:16:
 
According to this site, it says "Lè„Í4"
 
Posted by garlicguy (Member # 3166) on May 29, 2007, 16:35:
 
Which is why I prefer hexidecimal. Once coded into hex, then run through the site Druid offers, it actually translates into: Lè„Í4
 
Posted by Steen (Member # 170) on May 29, 2007, 16:56:
 
*sigh*

dragonman97 pointed right at the answer, although he didn't suggest using 5 bit words. Here... figure out why it works this way for yourself:

code:
01001 10011 10100 01000 01001 10011 01001 10100
9 19 20 8 9 19 9 20
i s t h i s i t


 
Posted by Tiroth (Member # 8543) on May 29, 2007, 17:35:
 
well i know how to use 5 bit ones, but no idea about 8 bit. i'm hopeless [shake head] lol
 
Posted by Steen (Member # 170) on May 29, 2007, 17:37:
 
8 bit words used to represent text are usually ASCII, ANSI or Unicode. If you do a search on each, you can find information on what characters correspond to what numerical values.
 
Posted by Stereo (Member # 748) on May 29, 2007, 17:55:
 
quote:
Originally posted by Steen:
8 bit words used to represent text are usually ASCII, ANSI or Unicode. If you do a search on each, you can find information on what characters correspond to what numerical values.

Isn't Unicode 16 bits?

Tiroth, the Druid gave you the key to 8-bit binary decoding.
 
Posted by Tiroth (Member # 8543) on May 29, 2007, 17:58:
 
YES I GET IT NOW!!! [Big Grin] [Big Grin] [Big Grin] I just have to get used to the letters' binary numbers.
 
Posted by dragonman97 (Member # 780) on May 29, 2007, 18:14:
 
/me beats a dead horse - why would anyone use 5 bit? That's not enough to hold ASCII...
 
Posted by Steen (Member # 170) on May 29, 2007, 18:24:
 
Stereo wrote:
Isn't Unicode 16 bits?

It is if you're using UTF-16 encoding and not UTF-8 or UTF-32. I didn't want to confuse the issue [Smile]

dragonman97 wrote:
/me beats a dead horse - why would anyone use 5 bit? That's not enough to hold ASCII...

It's the first word length that can hold 26 letters for the alphabet. For use on a computer, it doesn't make sense. For use as an introduction for a beginner to the concept of binary encoding of text, it does.

Tiroth:
Congratulations. You're becoming geeker by the day [Smile]
 
Posted by Tiroth (Member # 8543) on May 29, 2007, 19:06:
 
quote:
Originally posted by Steen:
Tiroth:
Congratulations. You're becoming geeker by the day [Smile]

Before joining these forums never thought I'd say ty to that lol.
01110111 01101111 01101111 01110100
 
Posted by quantumfluff (Member # 450) on May 29, 2007, 19:41:
 
Stereo wrote: Isn't Unicode 16 bits?
It's 32 bits, but the most common encodings are the 8-bit UTF-8 for transmission and data interchange and the 16-bit (UTF-16) for use during program execution.

dragonman97 wrote: /me beats a dead horse - why would anyone use 5 bit? That's not enough to hold ASCII...
Early telegraph systems used a 5-bit encoding called Baudot, but few people who frequent these forums would be old enough to ever have heard about it. DEC used a "sixbit" format to encode 6 alphanumeric characters in a single 36 bit word, but it could only handle upper case. They also packed five 7-bit ASCII characters into a 36 bit word. It was always an pain to convert from one format to the other when dealing with strings when writing PDP-10 assembler code.
 
Posted by Stereo (Member # 748) on May 30, 2007, 06:12:
 
Steen & qf: I guess I am not a good enough geek. I believe the 16-bit Unicode was talked about in a college course, and although I could have guessed the existence of a 32 bits version, I never knew about an 8 bits one. [blush] (I think I'll have to update my knowlege if I don't want to make a fool of me again...)
 
Posted by quantumfluff (Member # 450) on May 30, 2007, 07:00:
 
Don't be hard on yourself Stereo. I won't judge you. Unicode is one of the most poorly understood things that programmers use.
 
Posted by MacManKrisK (Member # 955) on May 30, 2007, 11:14:
 
Tiroth: I don't think you're ready yet, but once you get a good grasp of how a binary number converts to a decimal number (hint: memorize your powers of 2, 2^0=1 2^1=2 2^2=4 2^3=8 2^4=16.. etc.), then we'll teach you how to count to 31 using only ONE HAND!
 
Posted by LoneWolf (Member # 4966) on May 30, 2007, 13:09:
 
I have exposed my daughter to binary by creating a binary hopscotch game using sidewalk chalk. Fun!!

01
10
11
100
101
etc...
 


© 2018 Geek Culture

Powered by Infopop Corporation
UBB.classicTM 6.4.0