Number Systems
Chapter 2 · Tamil Nadu State Board
- 11 min read
- 6-question quiz
Every key point below shows the sentence from your textbook it comes from. Book back answers are solved and checked against the book; answers we could not prove are left out. How we check content
In short
This lesson explains how computers represent data using binary digits and how memory sizes, number systems and character codes work. It teaches how to convert numbers between Decimal, Binary, Octal and Hexadecimal, and how signed numbers can be represented. It also introduces binary addition and subtraction and encoding systems such as ASCII and Unicode. These ideas help explain how computers store, interpret and process numbers and characters.
Written by AI from this lesson. How we check it
Key points
- Computers represent data using the binary digits 0 and 1, which are understood as Machine language.
From your textbook
“‘0’ and ‘1’ that the Computer can understand is called Machine language.”
- A nibble contains four bits, while a byte contains eight bits and is used as a basic memory-size unit.
From your textbook
“A nibble is a collection of 4 bits (Binary digits). • A collection of 8 bits is called Byte.”
- The base of a number system tells how many different digits it uses; Binary, Octal and Hexadecimal use bases 2, 8 and 16.
From your textbook
“Each number system is uniquely identified by its base value or radix.”
- In positional notation, each digit contributes according to its position and the base raised to a corresponding power.
From your textbook
“each digit in the number is multiplied by 10 raised to a power corresponding to that digit’s position.”
- Repeated division by the target base converts whole Decimal numbers, and the remainders are read from the last one back to the first.
From your textbook
“Write the final answer starting from final remainder value obtained to the first remainder value obtained.”
- Signed Magnitude uses the leftmost bit to show the sign: 0 means positive and 1 means negative.
From your textbook
“If this bit is 0, it is a positive number and if it 1, it is a negative number.”
- Character encoding schemes assign codes to characters so computers can represent them in memory.
From your textbook
“All Characters in the character set needs a common encoding system.”
Data and how computers represent it
Data means raw facts about people, places or objects. When data is processed, it becomes information. For example, a name, age, class, mark and subject can be combined into a sentence that gives information.
Definition
- Machine language
- Machine language is the form of 0 and 1 that a computer can understand.
Definition
- Bit
- A bit is a binary digit, either 0 or 1, and is the basic unit of data in computers.
Data units
- A nibble is a collection of 4 bits.
- A byte is a collection of 8 bits and is a basic unit for measuring computer memory.
- Word length is the number of bits processed by a computer’s CPU.
Computer speed depends on how many bits it can process at once. A 64-bit computer can process 64-bit numbers in one operation. A 32-bit computer breaks 64-bit numbers into smaller pieces, so processing takes longer.
Memory sizes and ASCII
Computer memory is commonly described in KB or MB. In the binary system, KiloByte means 1024 bytes, which is 2^10. Larger memory units are built from these binary sizes.
Binary memory sizes
- Kilo (K): 2^10 = 1,024
- Mega (M): 2^20 = 1,048,576
- Giga (G): 2^30 = 1,073,741,824
- Tera (T): 2^40 = 1,099,511,627,776
- Peta (P): 2^50 = 1,125,899,906,842,624
- Exa (E): 2^60 = 1,152,921,504,606,846,976
- Zetta (Z): 2^70 = 1,180,591,620,717,411,303,424
- Yotta (Y): 2^80 = 1,208,925,819,614,629,174,706,173
Definition
- ASCII
- ASCII is a commonly used coding scheme that uses binary values between 0 and 127 to represent specific characters.
Some ASCII values
- A blank space has the ASCII value 32.
- The numeric character 0 has the ASCII value 48.
- Lowercase alphabet values range from 97 to 122.
- Uppercase alphabet values range from 65 to 90.
Number systems and their bases
Definition
- Number system
- A number system is a way of representing numbers.
Definition
- Radix or base
- The radix or base is the count of digits used in a number system.
Digits used in each number system
| Number system | Base and allowed digits |
|---|---|
| Decimal | Base 10: 0,1,2,3,4,5,6,7,8,9 |
| Binary | Base 2: 0,1 |
| Octal | Base 8: 0,1,2,3,4,5,6,7 |
| Hexadecimal | Base 16: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F |
In a positional number system, a digit’s value depends on its position. Each position has a weight based on a power of the system’s base. Hexadecimal uses A to F for the values 10 to 15.
Hexadecimal letter values
- A represents 10.
- B represents 11.
- C represents 12.
- D represents 13.
- E represents 14.
- F represents 15.
Positional values and converting to decimal
To find a number’s decimal value, multiply each digit by the base raised to the power of its position. The rightmost digit has the power 0, and the powers increase as you move left.
Worked example
Find the decimal value of (123)10.
Try it first, then show the solutionSolution
- Multiply each digit by its positional power of 10.
- 1×10^2 + 2×10^1 + 3×10^0 = 100 + 20 + 3.
Answer: (123)10
Definition
- Most Significant Bit (MSB)
- The leftmost bit in a binary number is the MSB and has the largest positional weight.
Definition
- Least Significant Bit (LSB)
- The rightmost bit in a binary number is the LSB and has the smallest positional weight.
Worked example
Find the decimal equivalent of (1101)2.
Try it first, then show the solutionSolution
- Multiply each bit by its positional power of 2.
- 1×2^3 + 1×2^2 + 0×2^1 + 1×2^0 = 8 + 4 + 0 + 1.
Answer: (13)10
Worked example
Find the decimal equivalent of (547)8.
Try it first, then show the solutionSolution
- Multiply each digit by its positional power of 8.
- 5×8^2 + 4×8^1 + 7×8^0 = 5×64 + 4×8 + 7×1.
- 320 + 32 + 7 = 359.
Answer: (359)10
Worked example
Find the decimal equivalent of (25)16.
Try it first, then show the solutionSolution
- Multiply each digit by its positional power of 16.
- 2×16^1 + 5×16^0 = 32 + 5.
Answer: (37)10
Remember: For positional conversion, use powers of the number’s base, starting with power 0 at the rightmost digit.
Decimal to Binary, Octal and Hexadecimal
For a whole decimal number, repeated division gives its digits in another base. Divide by 2 for binary, by 8 for octal, or by 16 for hexadecimal. Read the remainders from the last one back to the first.
Repeated division method
- Divide the decimal number by the base you need.
- Record the remainder.
- Divide the quotient again by the same base. Continue until the quotient becomes 0 or 1.
- Read the remainders from the final remainder back to the first remainder.
Worked example
Convert (65)10 into binary using repeated division by 2.
Try it first, then show the solutionSolution
- 65 ÷ 2 gives quotient 32 and remainder 1.
- 32 ÷ 2 gives quotient 16 and remainder 0.
- 16 ÷ 2 gives quotient 8 and remainder 0.
- 8 ÷ 2 gives quotient 4 and remainder 0.
- 4 ÷ 2 gives quotient 2 and remainder 0.
- 2 ÷ 2 gives quotient 1 and remainder 0.
- Read the remainders from the last one to the first.
Answer: (65)10 = (1000001)2
Another way to change decimal to binary is to use powers of 2. Start with the largest power of 2 that is no greater than the number. Put 1 for a power used and 0 for a power not used.
Worked example
Convert 65 to binary using powers of 2.
Try it first, then show the solutionSolution
- The largest power of 2 that is no greater than 65 is 64. Set the 64’s bit to 1: 65 - 64 = 1.
- The remaining value is less than 32, 16, 8, 4 and 2, so set those bits to 0.
- The remaining value is 1, so set the 1’s bit to 1.
Answer: The bits for 64, 32, 16, 8, 4, 2 and 1 are 1 0 0 0 0 0 1. Therefore, 6510 = (1000001)2.
Worked example
Convert (65)10 into octal.
Try it first, then show the solutionSolution
- 65 ÷ 8 gives quotient 8 and remainder 1.
- 8 ÷ 8 gives quotient 1 and remainder 0.
- Read the remainders from the last one to the first.
Answer: (65)10 = (101)8
Worked example
Convert (31)10 into hexadecimal.
Try it first, then show the solutionSolution
- 31 ÷ 16 gives quotient 1 and remainder 15.
- In hexadecimal, F = 15. Read the quotient and remainder in order.
Answer: (31)10 = (1F)16
Converting Between Binary, Octal and Decimal
Definition
- Positional notation
- A digit’s value depends on its position and the weight assigned to that position.
To convert binary to decimal, match each binary digit with its power-of-2 weight, multiply the digit by that weight, and add the results. For binary to octal, group the bits in threes from right to left. Add 0s at the left if needed, then convert each group to an octal digit.
Worked example
Convert (111011)2 into decimal.
Try it first, then show the solutionSolution
- The weights from left to right are 32, 16, 8, 4, 2 and 1.
- Multiply each weight by its matching digit: 32 + 16 + 8 + 0 + 2 + 1.
Answer: (111011)2 = (59)10
Worked example
Convert (11010110)2 into octal.
Try it first, then show the solutionSolution
- Group the bits in threes from right to left, adding a 0 at the left: 011 010 110.
- Convert the groups: 011 = 3, 010 = 2, and 110 = 6.
Answer: (11010110)2 = (326)8
For binary to hexadecimal, group the bits in fours from right to left. Add 0s at the left to complete the first group. Convert each group to its hexadecimal digit.
Worked example
Convert (1111010110)2 into hexadecimal.
Try it first, then show the solutionSolution
- Group the bits in fours from right to left, adding 0s at the left: 0011 1101 0110.
- Convert the groups: 0011 = 3, 1101 = D, and 0110 = 6.
Answer: (1111010110)2 = (3D6)16
Worked example
Convert (1265)8 into decimal.
Try it first, then show the solutionSolution
- The weights from left to right are 512, 64, 8 and 1.
- Multiply each digit by its weight: 512 × 1 + 64 × 2 + 8 × 6 + 1 × 5.
- Add the values: 512 + 128 + 48 + 5.
Answer: (1265)8 = (693)10
Converting Fractional Decimal and Binary Numbers
To change a decimal fraction to binary, multiply the fraction by 2 and record the integer part. Keep the fractional part for the next multiplication. Stop when the fraction becomes 0 or begins to repeat, then read the recorded integer parts from top to bottom.
Worked example
Convert (0.2)10 into binary.
Try it first, then show the solutionSolution
- 0.2 × 2 = 0.4; record 0.
- 0.4 × 2 = 0.8; record 0.
- 0.8 × 2 = 1.6; record 1 and keep the fractional part 0.6.
- 0.6 × 2 = 1.2; record 1 and keep the fractional part 0.2.
- The fraction 0.2 repeats. The integer parts repeat as 0011.
Answer: (0.2)10 = (0.00110011…)2
To convert a fractional binary number to decimal, convert the integer part using powers of 2. For the fractional part, use weights 2-1, 2-2, 2-3 and so on from left to right. Multiply each digit by its weight and add the results.
Remember: For repeated division, read remainders from last to first. For repeated multiplication of a fraction, read integer parts from first to last.
Binary Coded Decimal (BCD)
Binary Coded Decimal (BCD) is described as a 6-bit encoding system. It can handle 64 characters. It is not commonly used in practice.
Remember: Remember: BCD can handle 64 characters.
ASCII and EBCDIC
Definition
- ASCII
- American Standard Code for Information Interchange is a popular encoding system used by most computers, and it represents English characters.
ASCII assigns an individual number to each character. The 7-bit form handles 128 characters. ASCII-8 uses 8 bits and represents 256 characters with unique numbers from 0 to 255.
Worked example
What are the ASCII values for uppercase A?
Try it first, then show the solutionSolution
- The decimal value is 65.
- The 7-bit binary value is 1000001.
- The ASCII-8 binary value is 01000001.
Answer: A has decimal value 65, 7-bit binary value 1000001, and ASCII-8 binary value 01000001.
Definition
- EBCDIC
- Extended Binary Coded Decimal Interchange Code is an 8-bit coding system formulated by International Business Machine (IBM) that can handle 256 characters.
EBCDIC is similar to ASCII. A code in ASCII can be converted to EBCDIC, and an EBCDIC code can be converted to ASCII.
ASCII and EBCDIC
| ASCII | EBCDIC |
|---|---|
| Represents English characters. | Can handle 256 characters. |
| The 7-bit form handles 128 characters; ASCII-8 handles 256. | Uses an 8-bit representation. |
| A code can be converted to EBCDIC. | A code can be converted to ASCII. |
ISCII and Unicode
Definition
- ISCII
- Indian Standard Code for Information Interchange is an 8-bit system for handling characters in Indian local languages.
ISCII can handle 256 characters. It was formulated by the department of Electronics in India in the year 1986- 88 and recognized by Bureau of Indian Standards (BIS). This coding system is now integrated with Unicode.
Definition
- Unicode
- Unicode is a 16-bit coding system used in most modern computers to handle characters from universal languages.
ASCII cannot represent languages such as Tamil, Malayalam, Kannada and Telugu. Unicode was generated to handle these and other languages. It can handle 65536 characters and is denoted by hexadecimal numbers.
Key facts about Unicode
- Unicode uses 16 bits.
- Unicode can handle 65536 characters.
- Unicode is denoted by hexadecimal numbers.
- Unicode tables are shown for Tamil, Malayalam, Telugu and Kannada.
ISCII and Unicode
| ISCII | Unicode |
|---|---|
| Uses 8 bits and handles 256 characters. | Uses 16 bits and handles 65536 characters. |
| Handles characters in Indian local languages. | Handles characters from universal languages. |
| Now integrated with Unicode. | Used in most modern computers. |
Remember: Remember: Unicode supports far more characters than the 8-bit systems described here.
Questions students ask
Short, direct answers to what students search for in this chapter.
What is the difference between data and information?
Data is a collection of raw facts about people, places or objects. When data is processed and presented with meaning, it becomes information. For example, a person’s name, age, class, mark and subject are data; combining them into a sentence gives information.
What are a bit, nibble, byte and word length?
A bit is one binary digit, either 0 or 1. A nibble contains 4 bits, and a byte contains 8 bits. Word length is the number of bits processed by a computer’s CPU.
What is the radix of a number system?
The radix, or base, is the count of digits used in a number system. Decimal has base 10, binary has base 2, octal has base 8, and hexadecimal has base 16. The base determines the positional powers used to represent numbers.
How do you convert a binary number to decimal?
Multiply each binary digit by a power of 2 based on its position. Start with power 0 at the rightmost digit, then add the results. For example, (1101)2 = 1×2^3 + 1×2^2 + 0×2^1 + 1×2^0 = (13)10.
What do MSB and LSB mean in a binary number?
MSB means Most Significant Bit. It is the leftmost bit and has the largest positional weight. LSB means Least Significant Bit. It is the rightmost bit and has the smallest positional weight.
How do you convert a decimal number to binary using repeated division?
Divide the decimal number by 2 and record the remainder. Keep dividing each quotient by 2 until the quotient becomes 0 or 1. The final quotient is the last remainder. Read the remainders from the last one back to the first to get the binary number.
Show 14 more questions
How do you convert binary to octal?
Starting at the right, divide the binary digits into groups of 3. If the leftmost group has fewer than 3 digits, add 0s to its left. Convert each group to its octal digit, then write the digits in the same left-to-right order.
How do you convert binary to hexadecimal?
Starting at the right, divide the binary digits into groups of 4. Add 0s to the left of the leftmost group if needed. Convert each group to its hexadecimal digit and write the digits in the same order.
How do you convert a decimal fraction to binary?
Multiply the fraction by 2 and record the integer part, which is 0 or 1. Use the fractional part of that product for the next multiplication. Continue until the fraction becomes 0 or repeats. Read the recorded integer parts from first to last.
How do you convert a fractional binary number to decimal?
Convert the integer part using powers of 2. For the fractional digits, use weights 2-1, 2-2, 2-3 and so on from left to right. Multiply each digit by its weight, add those values, and join the result to the converted integer part with a decimal point.
How do you convert an octal number to binary?
Convert each octal digit into its 3-bit binary equivalent. Keep the groups in the same order and join them together. For example, the digits in (6213)8 become 110, 010, 001, and 011, giving (110010001011)2.
How do you convert hexadecimal to decimal?
Write the powers of 16 for each position, starting with 1 at the right. Multiply each hexadecimal digit by its positional weight, then add the values. For (25F)16, the calculation is 2×256 + 5×16 + 15×1 = (607)10.
What is the difference between 1’s complement and 2’s complement?
For 1’s complement, invert every bit in the binary number, changing 0 to 1 and 1 to 0. For 2’s complement, first find the 1’s complement, then add 1 to the result at the Least Significant Bit.
What does the sign bit mean in signed magnitude representation?
The leftmost bit is the sign bit in signed magnitude representation. A sign bit of 0 means the number is positive, while a sign bit of 1 means it is negative. In an 8-bit number, the other 7 bits store the magnitude.
What are the character encoding systems used in computers?
The character encoding systems listed are BCD, EBCDIC, ASCII, Unicode, and ISCII. These systems represent characters through numbers so that the character set can be encoded in a common format.
How many characters can BCD handle?
Binary Coded Decimal (BCD) is described as a 6-bit encoding system. It can handle 64 characters and is not commonly used in practice.
What is ASCII and how many characters can it represent?
ASCII means American Standard Code for Information Interchange. It is a popular encoding system used by most computers and represents English characters. Its 7-bit form handles 128 characters, while ASCII-8 handles 256.
What is the ASCII code for uppercase A?
The ASCII decimal value for uppercase A is 65. Its 7-bit binary representation is 1000001, and its ASCII-8 binary representation is 01000001.
What is ISCII used for?
ISCII means Indian Standard Code for Information Interchange. It is an 8-bit coding system for characters in Indian local languages. It can handle 256 characters and is now integrated with Unicode.
Why was Unicode generated?
ASCII could not represent languages such as Tamil, Malayalam, Kannada and Telugu. Unicode was generated to handle characters from universal languages. It uses 16 bits, can handle 65536 characters, and is denoted by hexadecimal numbers.
Book back answers
12 textbook exercises, solved and checked against the book. Questions we could not prove are left out.
Part-I — Choose the correct answer
Which refers to the number of bits processed by a computer’s CPU?
- A) Byte
- B) Nibble
- C) Word length
- D) Bit
Try it, then show the answerAnswer
C) Word length
Word length refers to the number of bits processed by a computer’s CPU.
From the book: “Word length refers to the number of bits processed by a Computer’s CPU.”
How many bytes does 1 KiloByte contain?
- A) 1000
- B) 8
- C) 4
- D) 1024
Try it, then show the answerAnswer
D) 1024
In the binary system, one KiloByte contains 1024 bytes.
From the book: “In binary system, 1 KiloByte represents 1024 bytes”
Expansion for ASCII
- A) American School Code for Information Interchange
- B) American Standard Code for Information Interchange
- C) All Standard Code for Information Interchange
- D) American Society Code for Information Interchange
Try it, then show the answerAnswer
B) American Standard Code for Information Interchange
ASCII expands to American Standard Code for Information Interchange.
From the book: “The most commonly used coding scheme is the American Standard Code for Information Interchange (ASCII).”
2^50 is referred as
- A) Kilo
- B) Tera
- C) Peta
- D) Zetta
Try it, then show the answerAnswer
C) Peta
The memory-size table names 2^50 as Peta.
From the book: “Peta P 2^50 = 1,125,899,906,842,624”
Practice
What is a nibble?
Exam questions
Practice questions with model answers. These are not from an official paper.
What are a bit, a nibble and a byte?2 marks
A bit is a Binary digit that can be 0 or 1. A nibble is a group of 4 bits, and a byte is a group of 8 bits.
Explain radix and give the bases of Binary, Octal and Hexadecimal.2 marks
Radix, or base, is the count of digits in a number system. Binary has base 2, Octal has base 8, and Hexadecimal has base 16.
How does repeated division convert a Decimal whole number to Binary?2 marks
Divide the number repeatedly by 2 and record each remainder. Continue until the quotient is 0 or 1, then write the final remainder followed by the earlier remainders in reverse order.
Describe how Signed Magnitude represents positive and negative binary numbers.2 marks
The leftmost bit acts as the sign bit. A 0 indicates a positive number and a 1 indicates a negative number; the other bits store the magnitude.
Watch out
- Do not confuse a bit, nibble and byte: they contain 1, 4 and 8 bits respectively.
- When using repeated division to convert a whole Decimal number, do not write the remainders in the order they were produced; read them from the final remainder back to the first.
Still stuck on this lesson?
Get an AI answer grounded in your actual textbook — with the exact page reference.
Ask AI about this topic →