[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
3.2.2 Bits n Bytes
JerryDate: Monday, 26/09/2011, 11:48 AM | Message # 1
Ford Everest
Group: Administrators
Messages: 137
Reputation: 0
Status: Offline
Bits and Bytes

A bit is the smallest unit a computer can work with and a computer stores all information in bits that are processed using binary.
1 bit is represented as 0 or 1 which means either a signal or a lack of one

In binary the counting goes from right to left (small to big values)
every bi is the doubled value of the bit before

= 0001
= 0010
= 0011
= 0100
= 0101
= 0110
= 0111
= 1000

adding one to the binary code:

the last digit is zero:
increases the last digit by one
example: 1000 (8) becomes 1001 (9)

2. the last digit is one:
the last digit becomes a 0
the second to last digit is increased by 1
if the second to last digit is also 1, then the second to last digit also becomes 0, this can be repeated as long as it is necessary.
example: 1001 (9) becomes 1010 (10), 1011 (11) becomes 1100 (12)

Rons Approach to counting in Binary:
Its a base 2 system, so the numbers do not represent what we are used to read numbers like in the base ten system, but they represent powers of two.





A byte is exactly 8 bits
8 bits = 1 Bytes
Larger values are usually refereed to in kilobytes (kB), terabytes (TB), Gigabits (Gb), or Megabytes (MB)
which increase in powers of 2 for example
1 kilobyte = 2 to the power of 10
1 megabyte = 2 to the power of 20
1 gigabyte = 2 to the power of 30
1 terabyte = 2 to the power of 40

Links:
3.4.8 The need for speed in data transmission
3.5.1 Binary Data representation
 
  • Page 1 of 1
  • 1
Search:

Statistics
Map
Login form