
1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29








#8247  02/10/04 02:47 PM
Binary

Joined: Jan 2003
Posts: 217
Ntd
Member

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



#8248  02/10/04 10:26 PM
Re: Binary

Joined: Mar 2002
Posts: 1,041
Infinite
UGN Elite Poster

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




Forums46
Topics43,996
Posts79,170
Members2,157

Most Online1,567 Apr 25th, 2010


0 registered members (),
1
guest and
3
spiders. 

