Bit, Byte, Binary and Hexadecimal

Bit & Byte

Binary digit: a digit in the binary number system; a 0 or a 1

Bit, Byte, and Word:

  • Each storage unit is called a binary digit, or bit for short. Bits are grouped together into bytes (8 bits), and bytes are grouped together into units called words. (Dale and Lewis)

Word Length: the number of bits in a word in a computer (Dale and Lewis)

Conversion Formula:

  • 1 Byte = 8 Bits;
  • 1024 Bytes = 1 Kilobyte (kb);
  • 1024 Kilobytes = 1 Megabyte (Mb);
  • 1024 Megabytes = 1 Gigabyte (Gb);
  • 1024 Gigabytes = 1 Terabyte (Tb);
  • 1024 Terabytes = 1 Petabyte (Pb);
  • … (Kyaw)

When we are measuring speed, we use bit as the unit of speed. (mbps: million bits per second)

Numbers

屏幕快照 2016-09-17 下午2.32.42.png(Kyaw)

 

42Base

the base of a number system specifies the number of digits used in the system.(Dale and Lewis)

 

Positional Notation

  • A way to write numbers
  • the position of each digit has a place value, number’s value equals to the sum of all place values in all positions.(Dale and Lewis)

    IMG_0665.JPG

 

Decimal, Binary, Octal, and Hexadecimal

屏幕快照 2016-09-17 下午3.34.43 1.png

Counting

屏幕快照 2016-09-17 下午4.36.44.png

Converting Binary to Decimal

IMG_0669.JPG

Converting Decimal to binary

img_0674

Converting Hexadecimal (DEF) to Decimal

屏幕快照 2016-09-17 下午4.27.53.png
(Kyaw)

Converting Octal (642) to Decimal

屏幕快照 2016-09-17 下午4.27.59.png(Kyaw)

Converting Binary to Octal

  • Mark groups of three (from right)
  • Convert each group
  • 10101011 is 253 in base 8
屏幕快照 2016-09-17 下午4.39.49.png(Kyaw)

Converting Binary to Hexadecimal

  • Mark groups of four (from right)
  • Convert each group
  • 10101011 is AB in base 16
屏幕快照 2016-09-17 下午4.41.43.png
(Kyaw)

Converting Decimal(1988) to Other Bases

  • While (the quotient is not zero)
  • Divide the decimal number by the new base
  • Make the remainder the next digit to the left in the answer
  • Replace the original decimal number with the quotient
屏幕快照 2016-09-17 下午4.45.10.png
Converting 1988 (base 10) to base 8 (Kyaw)

Works Cited

Dale, Nell and John Lewis. Computer Science Illuminated. Print.

Kyaw, Pyae Sone. “Bit, Byte, Binary And Hexadecimal”. 2016. Presentation.

 

1 Comments

留下评论