Smart Syllabus 2027: this unit is excluded from the 2027 board exams.
A number system is a way of writing numbers. We use the decimal system in daily life, but computers work in the binary system, which uses only 0 and 1. In this chapter you will learn about the decimal, binary, octal and hexadecimal number systems, and how to convert numbers from one system to another.
A number system is a method of writing numbers using digits and a base. The base of a number system is the number of different digits it uses. For example, the decimal system has base 10 because it uses ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. The position of a digit also matters. In the number 45, the 4 is in the tens place, so it means 40, and the 5 is in the ones place, so it means 5. This is called place value.
The decimal system is the system we use in daily life. It has base 10 and uses the digits 0 to 9. After 9, the digits repeat with a new place: 10, 11, 12, and so on. Each place is ten times bigger than the place to its right: ones, tens, hundreds, thousands. For example, 237 means 2 hundreds + 3 tens + 7 ones, which is 200 + 30 + 7 = 237.
The binary system has base 2 and uses only two digits: 0 and 1. These digits are called bits. Computers use binary because their circuits have only two states: on and off. On is shown by 1 and off is shown by 0. The place values in binary are powers of 2: 1, 2, 4, 8, 16, 32, 64 and so on. For example, binary 1011 means 1 x 8 + 0 x 4 + 1 x 2 + 1 x 1 = 8 + 0 + 2 + 1 = 11 in decimal.
The octal system has base 8 and uses the digits 0 to 7. The hexadecimal system has base 16 and uses the digits 0 to 9 and the letters A, B, C, D, E, F. In hexadecimal, A means 10, B means 11, C means 12, D means 13, E means 14 and F means 15. Hexadecimal is used to write binary numbers in a short form, for example in computer memory addresses. One hexadecimal digit stands for four binary digits.
Worked Example 1 — Decimal to Binary (25 to binary): Divide the number by 2 again and again and write down each remainder. 25 divided by 2 is 12, remainder 1. 12 divided by 2 is 6, remainder 0. 6 divided by 2 is 3, remainder 0. 3 divided by 2 is 1, remainder 1. 1 divided by 2 is 0, remainder 1. Now read the remainders from bottom to top: 11001. So decimal 25 is 11001 in binary. Worked Example 2 — Binary to Decimal (101101 to decimal): Multiply each bit by its place value and add. The place values from the right are 1, 2, 4, 8, 16, 32. So 1 x 32 + 0 x 16 + 1 x 8 + 1 x 4 + 0 x 2 + 1 x 1 = 32 + 0 + 8 + 4 + 0 + 1 = 45. So binary 101101 is 45 in decimal.
The bit is the smallest unit of data in a computer. A group of 8 bits is called a byte, and one byte can store one character, such as a letter. Larger units are used for files and memory: 1024 bytes make 1 kilobyte (KB), 1024 kilobytes make 1 megabyte (MB), 1024 megabytes make 1 gigabyte (GB), and 1024 gigabytes make 1 terabyte (TB). For example, a short text file may be a few kilobytes, while a movie file may be several gigabytes.
| Term | Definition |
|---|---|
| Number System | A method of writing numbers using a fixed set of digits and a base, such as decimal (base 10) or binary (base 2). |
| Decimal Number System | The number system that uses the digits 0 to 9 and has base 10. It is the system we use in daily life. |
| Binary Number System | The number system that uses only the digits 0 and 1 and has base 2. Computers work in binary. |
| Octal Number System | The number system that uses the digits 0 to 7 and has base 8. |
| Hexadecimal Number System | The number system that uses the digits 0 to 9 and the letters A to F, and has base 16. A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15. |
| Bit | The smallest unit of data in a computer. A bit is a single 0 or 1. |
| Byte | A group of 8 bits. A byte can store one character, such as a letter or a digit. |
| Digit | A digit in a number system. For example, binary digits are called bits. |
| Place Value | The value of a digit depends on its position in the number. In 45, the 4 means 40 because it is in the tens place. |
| Number Conversion | Changing a number from one number system to another, for example from decimal to binary. |
1. Which digits are used in the binary number system?
Answer: B — 0 and 1. The binary system uses only two digits, 0 and 1.
2. What is the base of the decimal number system?
Answer: B — 10. The decimal system has base 10 because it uses ten digits, 0 to 9.
3. What is the base of the hexadecimal number system?
Answer: B — Base 16. The hexadecimal system has base 16.
4. Which of the following is NOT a valid digit in the octal system?
Answer: D — 8. Octal uses digits 0 to 7, so 8 is not a valid digit in octal.
5. What is the decimal value of the hexadecimal digit A?
Answer: C — 10. In hexadecimal, A stands for 10.
6. What is decimal 25 in binary?
Answer: A — 11001. 25 divided by 2 gives remainders 1, 0, 0, 1, 1, which read upwards give 11001.
7. What is binary 101101 in decimal?
Answer: C — 45. 101101 in binary is 32 + 0 + 8 + 4 + 0 + 1 = 45 in decimal.
8. How many bits are there in one byte?
Answer: B — 8 bits. One byte is made of 8 bits.
9. How many bytes are there in one kilobyte?
Answer: C — 1024 bytes. 1024 bytes make 1 kilobyte.
10. What is decimal 255 in hexadecimal?
Answer: D — FF. Decimal 255 is FF in hexadecimal because F is 15, and 15 x 16 + 15 = 255.
1. What is the binary number system?
The binary system has base 2 and uses only two digits, 0 and 1. Computers use it because their circuits have only two states: on, shown by 1, and off, shown by 0. A single binary digit is called a bit.
2. What is the difference between the decimal and hexadecimal number systems?
The decimal system has base 10 and uses the digits 0 to 9. The hexadecimal system has base 16 and uses the digits 0 to 9 and the letters A to F, where A is 10 and F is 15. We use decimal in daily life, while hexadecimal is used to write binary numbers in a short form.
3. Convert decimal 25 into binary, showing the working.
Divide 25 by 2 again and again and write the remainders: 25 / 2 gives remainder 1, 12 / 2 gives 0, 6 / 2 gives 0, 3 / 2 gives 1, and 1 / 2 gives 1. Reading the remainders from bottom to top gives 11001. So decimal 25 is 11001 in binary.
4. Convert binary 101101 into decimal, showing the working.
Multiply each bit by its place value and add the results. The place values are 32, 16, 8, 4, 2 and 1. So 1 x 32 + 0 x 16 + 1 x 8 + 1 x 4 + 0 x 2 + 1 x 1 = 32 + 0 + 8 + 4 + 0 + 1 = 45. So binary 101101 is 45 in decimal.
5. Define bit and byte. How many bytes are in a kilobyte?
A bit is the smallest unit of data, a single 0 or 1. A byte is a group of 8 bits and can store one character. 1024 bytes make 1 kilobyte, 1024 kilobytes make 1 megabyte, and 1024 megabytes make 1 gigabyte.
A number system is a way of writing numbers using digits and a base. Decimal has base 10, binary has base 2, octal has base 8 and hexadecimal has base 16. Computers use binary because their circuits have only two states, on and off. To convert decimal to binary, divide by 2 repeatedly and read the remainders upwards; to convert binary to decimal, multiply each bit by its place value and add. A bit is a single 0 or 1, and 8 bits make one byte.