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
(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)
Decimal, Binary, Octal, and Hexadecimal
Counting
Converting Binary to Decimal
Converting Decimal to binary
Converting Hexadecimal (DEF) to Decimal
(Kyaw)
Converting Octal (642) to Decimal
(Kyaw)
Converting Binary to Octal
- Mark groups of three (from right)
- Convert each group
- 10101011 is 253 in base 8
(Kyaw)
Converting Binary to Hexadecimal
- Mark groups of four (from right)
- Convert each group
- 10101011 is AB in base 16
(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
Works Cited
Dale, Nell and John Lewis. Computer Science Illuminated. Print.
Kyaw, Pyae Sone. “Bit, Byte, Binary And Hexadecimal”. 2016. Presentation.
Pictures without citation are created by the author herself (myself).
赞赞