Professional Documents
Culture Documents
Numbering System
Numbering System
1. Digital logic is the basis of all computer system. In order to understand how
computer works, interfacing and others, we have to have some basic
understanding about digital logic. In the old days, digital logic will use switching
theory as the logic arithmetic, but it is no longer useful because we already have
logic gates to substitute all relays.
2. The binary system was used because relay was implemented to realize the
switching theory to produce AND, OR and NOT gate. In addition, relay can only
represent two condition; ON and OFF or Logic 1 or Logic 0. Since every number
is in binary, we have to change everything into a binary numbering system,
including the way we count and perform math operation.
3. Since we need to perform math operation in binary, we have to go back to
numbering system so that we know how to perform math operation. Then, our
journey into numbering system begins!
Numbering system
Consider any numbering system – decimal system. 1234 is one thousand two hundred
thirty four or 1.10^3 + 2.10^2 + 3.10^1 + 4.10^0. This can be written as:
Where N is the number and R is the basis of the numbering system. For example
Numbering System: Hilmi Sanusi
Then, in order to perform the conversion from one numbering system to the other we can
do multiple division as:
Or simply as
R N
R Q1 a0
R Q2 a1
R Q3 a2
R Qn-1 an-1
R Qn an
The same thing can be performed on the fraction based on the basis R, as;
Example
Or
Up to this point we use unsigned positive number. In order to perform math operation, we
will first look at the negative number. This is because we can perform
N1 – N2 = N1 + (-N2)
Math Op
Arithmetic operations in digital system are usually done in binary because we can design
such circuit to perform the operation.
0+0= 0
0+1= 1
1+0= 1
1+1= 0 carry 1 or in other form 1 0
Basic subtraction
0–0= 0
0–1= 1 borrow 1 from the higher bit column
1–0= 1
1–1= 0
Basic multiplication
0x0= 0
0x1= 0
1x0= 0
1x1= 1
Numbering System: Hilmi Sanusi
Other codes
Some tome we need other code to simplify the problem, for that purpose other code is
needed. Then we will need a conversion to the code.