In this ICS3U Grade 11 Computer Science lesson you will be learning how to:
A number system is just a way people have decided to represent numbers. Certain systems are better at certain tasks then other systems.
You are used to using the Decimal Number System in your everyday life.
With computer systems it is often easier to represent numbers with other types of number systems
You have probably heard of the Binary Number System
Another number system that is used quite frequently in computer systems is the Hexadecimal Number System
To understand how to covert back and forth between different number systems, you need to remember the concept of place value that you learned in elementary school.
For Decimal Numbers:
This strategy can be used to convert numbers in any number system back into their decimal equivalent.
When converting from decimal numbers to any other base, its a simple matter of dividing by the base and looking at remainders.
Example: Converting the decimal number 97 to binary
To get the answer, read the binary number from the bottom upward to the top: 1100001 is the binary conversion
Example: Converting the decimal number 44 to binary
The binary equivalent is 101100
Example: Converting the decimal number 943 to hexadecimal
The hexadecimal equivalent is 3AF (Remember the 10 = A and 15 = F)
Example: Converting the decimal number 352 to hexadecimal
The hexadecimal equivalent is 160
Sometimes it makes sense to indicate what type of number you are looking at. How can you tell the difference between 160 in decimal and 160 in hexadecimal? You might see a subscript with the number indicating the base of the number system the number is representing 16010 and 16016
A single digit in the binary system is called a bit. A collection of 4 bits is called a nibble. 8 bits is called a byte
Binary numbers are typically written in full nibbles because that makes it easy to convert back and forth into hexadecimal.
Since the nibble has 4 bits, it can take the value of 0 to 15 in decimal (which are the digits in a hexadecimal number system)
If you get used to working in binary, then these 16 numbers are fairly easy to memorize and you will be able to convert back and forth between binary and hexadecimal very easily
Example: Consider the binary number: 0110 1011 1101 (See how its written as nibbles)
So the hexadecimal equivalent is 6BD
Example: Now consider the hexadecimal number A7F4
So the binary equivalent is 1010 0111 1111 0100
Watch a video of your teacher summarizing the learning content for this section
Make the following conversions. You can check your answers with this number system calculator