Your browser does not seem to support CSS. If images appear below, please disregard them.
Topic Options
Rate This Topic
#8247 - 02/10/04 02:47 PM Binary
Joined: Jan 2003
Posts: 217
Ntd Offline
Member
Ntd Offline
Member

Joined: Jan 2003
Posts: 217
Melbourne, Victoria, Australia
Hey,

Just got one question about binary and it its...

if 127 is largest number you can get from a byte how do you get numbers like 1000030303032040 ??

Thanks.

(64+32+16+8+4+2+1=127 != 256 mate and its 2^7 not 2^8 last bit is the parity check)

FYI: By Byte i mean 2^7 not 2^8 because the last bit is the parity check bit.

Top
Sponsored Links
#8248 - 02/10/04 10:26 PM Re: Binary
Joined: Mar 2002
Posts: 1,041
Infinite Offline
UGN Elite Poster
Infinite Offline
UGN Elite Poster

Joined: Mar 2002
Posts: 1,041
Canada eh
Not to sure where you pulled 127 from, but that is totally wrong. The largest number a byte can be is 255, ie:

11111111

But binary numbers can be longer than a byte. That's just a convienent grouping we use for computer related things. The numbers work the same as decimal except instead of useing powers of ten we use powers of 2. So instead of 1, 10, 100, 1000 we have 1, 2, 4, 8, 16 and so on. If you have a binary number that is 9 bits long you can have a number up to 511, 10 bits would be 1023, etc. So we get those numbers by have long binary number and not restricting them to byte size only.

Infinite

Top
#8249 - 02/11/04 10:34 AM Re: Binary
Joined: Jan 2003
Posts: 217
Ntd Offline
Member
Ntd Offline
Member

Joined: Jan 2003
Posts: 217
Melbourne, Victoria, Australia
Ok so your saying if we dont restrict it to byte size we can leave it, to say a megabyte size? So that would be 2^1024 not just 2^7?

Top
#8250 - 02/11/04 01:47 PM Re: Binary
Joined: Mar 2002
Posts: 1,041
Infinite Offline
UGN Elite Poster
Infinite Offline
UGN Elite Poster

Joined: Mar 2002
Posts: 1,041
Canada eh
yup

and a byte is 8 bits, 2^8

Top
#8251 - 02/12/04 07:46 AM Re: Binary
Joined: Jan 2003
Posts: 217
Ntd Offline
Member
Ntd Offline
Member

Joined: Jan 2003
Posts: 217
Melbourne, Victoria, Australia
Ok i get it now thanks for the help.

Top

Member Spotlight
Gremelin

Gremelin
Portland, OR; USA
Posts: 7,195
Joined: February 2002
Show All Member Profiles 
Sponsored Links
Forum Statistics
Forums46
Topics46,475
Posts81,645
Members2,157
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 39,639
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860