03 Number System
03 Number System
ENR107 – W2025
Maryam Kaveshgar
NUMBER SYSTEM
A number system represents and expresses quantities using numerical symbols, which provides a
structured way to count, measure, calculate, and communicate numerical values.
Base: Each number system has a base or radix, which determines the number of unique symbols
(digits) it uses. For example, the decimal system has a base of 10 (0 to 9), binary has a base of 2 (0 and
1), and hexadecimal has a base of 16 (0 to 9 and A to F).
Positional Notation: Most number systems use positional notation, where the value of a digit
depends on its position in the number. The position of a digit represents a power of the base, starting
from zero and increasing to the left.
Is there any non positional number
DD
system?
Also known as the base-10 number system since it uses ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8,
and 9.
Each digit's position in a decimal number has a weight based on powers of 10, making it a
positional notation system.
4672.6789
103 10-4
102 10-3
101 10-2
100 10-1
The simplicity and ease of use contribute to the widespread use of the decimal number
system in the modern world.
BINARY NUMBER SYSTEM
The binary number system is used for representing and processing data in computers and other
digital devices.
The binary system uses only two digits: 0 and 1. Each digit is called a "bit" (short for binary digit).
10101
24 22 20
23 21
The binary number system is ideally suited for digital electronics because it can be easily
represented using electrical states (ON/OFF) or magnetic polarities (NORTH/SOUTH).
OCTAL NUMBER SYSTEM
The octal number system is less commonly used than decimal and binary but finds important
applications in specific areas of computer science and electronics.
In some programming languages, such as C and its derivatives, octal notation is used to
represent special characters.
HEXADECIMAL NUMBER SYSTEM
The hexadecimal number system is widely used in computer programming, digital systems, and
networking.
It is a base-16 number system, using sixteen digits: 0 to 9 and A to F, where A represents 10, B
represents 11, and so on up to F representing 15.
The hexadecimal number system is ideally suited for representing and working with binary data
in a concise and human-readable format.
It provides a compact representation for large binary numbers, making it easier to manage and
communicate.
Number of digits that are being used for data representation are very important. For example, we can
represent 0-999 with 3 digits, 0-9999 with 4 digits in decimal number system.
Decimal Octal
Binary Hexadecimal
Example 1010112 - 1 * 20 = 1
1 * 21 = 2
0 * 22 = 0
1 * 23 = 8
0 * 24 = 0
1 * 25 = 32
Total - 4310
OCTAL TO DECIMAL
Multiply each bit by 8n, where n is the weight of the bit.
Example 6248 - 4 * 80 = 4
2 * 81 = 16
6 * 82 = 384
Total - 40410
HEXADECIMAL TO DECIMAL
Multiply each bit by 16n, where n is the weight of the bit.
Note down the integer part (before decimal) and multiply the rest by 2.
Answer – 100.0012
OCTAL TO BINARY
4 5 78
4 5 716
2 6 6 - 2668
HEXADECIMAL OCTAL
Use binary as intermediary.
BINARY TO HEXADECIMAL
Group bits in 4 and convert to hexa digits. 1010111002 - 1 0101 1100
1 5 C - 15C16
DECIMAL TO HEXADECIMAL
(243)10 = ()2
(1973)10 = ()16
(247)8 = ()10
(1110101101101)2 = ()10