UGN Security
Posted By: Ntd Binary - 02/10/04 02:47 PM
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 laugh 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.
Posted By: Infinite Re: Binary - 02/10/04 10:26 PM
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
Posted By: Ntd Re: Binary - 02/11/04 10:34 AM
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?
Posted By: Infinite Re: Binary - 02/11/04 01:47 PM
yup

and a byte is 8 bits, 2^8
Posted By: Ntd Re: Binary - 02/12/04 07:46 AM
Ok i get it now laugh thanks for the help.
© UGN Security Forum