Professional Documents
Culture Documents
Chapter3 DC
Chapter3 DC
Chapter3 DC
Daye Campus
02/15/2023
Data Representation in Computer System
Data Representation in Computer
Every computer stores numbers, letters, & other special characters in a coded form
not as it is.
The 1st reason is that the electronic & electrical components, by their very nature,
operate in a binary mode.
Information is handled in the computer by electronic/electrical components such as
transistors, semiconductors, wires, etc all of which can only indicate 2 states or
conditions – on(1) or off(0).
Transistors are either conducting (1) or no conducting (0); a voltage is present (1) or
absent (0) in wire. The binary number system, which has only two digits (0&1),
02/15/2023
Data Representation in Computer…
The 2nd reason is that the computer circuits only have to handle
two binary digits rather than ten decimal digits.
Finally, the binary system is used because everything that can be
done in decimal number system (addition, subtraction, division
& multiplication) can also be done in binary number system.
02/15/2023
Numbering System
It is the most popular form of numbering system which is used by human being.
02/15/2023
Cont’d…
02/15/2023
Binary number System
Its radix is 2.
It uses two digits i.e. 0 & 1.
Sometimes it is also called base-two system.
02/15/2023
Octal Number System
The base is 8
02/15/2023
Hexadecimal Number System
The base is 16
02/15/2023
A relationship among Binary & other number system
02/15/2023
Converting from One Number System to Another
Converting from another Base to Decimal (base 10)
Steps
Step 1:- Determine the positional value of each digit & multiply the obtained positional values by the digits
in the corresponding position.
Step 2:- Sum the products calculated in step 1. The total is the equivalent value in decimal
Ans. = 73
= 4 + 0 + 1 + 0.5
02/15/2023
Converting from Decimal to another Base (Division
Remainder Technique)
Steps
Step 1: Divide the decimal number to be converted by the value of the new base.
Step 2: Record the remainder from step 1 as the rightmost digit (least significant digit) of the new
base number.
Step 3: Divide the quotient of the previous divide by the new base.
Step 4: Record the remainder from step 3 as the next digit (to the left)
Repeat step 3 & 4, recording remainder from right to left until the quotient become zero in step 3.
Note that the last remainder thus obtained will be the most significant digit of the new base
number
02/15/2023
Cont’d…
Example 1:
Ans. 3010=(1E)16
02/15/2023
Converting a Decimal Fraction to a fractional in base
B
Steps
Step 1: Multiply the given decimal fraction by the base B.
Step 2: Repeat step 1 using the multiplicand at each step the remaining
fraction part is identically zero, or until as many digit as desired have
been generated.
The successive integral parts are the successive digits of the number in
base B starting from the most significant end.
02/15/2023
cont’d…
Example: convert (4.75)10 in to binary, octal, and hexadecimal.
02/15/2023
Conversion of non-decimal base to another
non-decimal base
Steps
Step 1: Convert the original number to a decimal number (base 10)
Step 2: Convert the decimal number to the new base number.
02/15/2023
Cont’d….
Thus, (111010)2 = ( )8
NB: direct or 3 bits grouping system is also used to convert the number.
(See the table below)
02/15/2023
A brief summary on conversion from one base to another base
02/15/2023
Computer Storage Measurement
1 B yte = 8 bits
1 Kilobyte (K B ) = 210 bytes = 1024 bytes
02/15/2023
Computer Coding System
This makes the conversion process easier. All decimal digits are represented in B
CD by 4 bits.
02/15/2023
quize1
02/15/2023
Assignment 1
02/15/2023
CHAPTER 4
C U NXT CLASS!!
02/15/2023