

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A brief explanation of decimal, binary, and hexadecimal number systems, which are all types of positional number systems. How each system represents numbers using different bases and provides examples of how to convert between these systems. It also includes a table comparing the numbers 0 to 15 in each system.
Typology: Schemes and Mind Maps
1 / 2
This page cannot be seen from the preview
Don't miss anything!
Base 10 and Positional Number Systems
We are all familiar with the base 10 number system that we use in our every day lives. The base 10 number system is just one example of a positional number system. In a positional number system a number is represented as a series of digits, where each digit position is associated with a weight. For example, the number representing the year 2003 can be represented as follows:
2003 = 2 * 10^3 + 0 * 10 2 + 0 * 10 1 + 3 * 10^0
position 3 2 1 0
As you can see, each weight is the power of 10 to the number position starting at 0. The
Binary and Hexadecimal Number Systems
Binary and Hexadecimal number systems are examples of positional number systems with different bases. Binary number systems use a base of two while hexadecimal uses a base of 16.
For example, the binary number 1010 is represented as follows:
1011 = 1 * 2^3 + 0 * 2 2 + 1 * 2 1 + 1 * 2^0 = 1 * 8 + 0 * 4 + 1 * 2 + 1 * 1 = 11 (base 10)
For example, the hexadecimal number 123 is represented as follows:
123 = 1 * 16^2 + 2 * 16 1 + 3 * 16^0 * 0 = 1 * 256 + 32 + 3 = 291 (base 10)
In a hexadecimal system, it is necessary to count to 15. To represent the numbers 10 – 15, the letters A – F are used respectively. To distinguish the different number systems, suffixes or subscripts are often used.
Number system suffix example subscript example decimal 0d 0d1023 (^10 )
binary 0b 0b1101 (^2 1101 )
hexadecimal 0x 0x12F 16 12F 16
The following table compares all three systems counting from 0 to 15.
Decimal Binary Hexadecimal 0 0000 0 1 0001 1 2 0010 2 3 0011 3 4 0100 4 5 0101 5 6 0110 6 7 0111 7 8 1000 8 9 1001 9 10 1010 A 11 1011 B 12 1100 C 12 1101 D 14 1110 E 15 1111 F