CH 1 CA
CH 1 CA
er 1: Number Sy
ystem |7
1.3
3.2.3 FLOATING
G POINT ADDITTION
Asssume you havee two numbers 9.70
9 × 10–1 and 9.99 × 101. Ad
dd these two num
mbers.
1.3
3.2.4 ADVANTA
AGES AND DISA
ADVANTAGES OF
O FLOATING‐P
POINT REPRESENTATION
Ass computer meemory is limitted, numbers with w limited prrecision are noot stored in
coomputer. So, flooating point num mbers are of greeat benefit. Thee floating-point notation has
thee advantage that it has wide range of numbbers. But the downside d of flooating point
nootations is that itt round off largee numbers.
1.4 D
DIGITAL NUM
MBER SYSTEEM
In digital electronnics, the numbber system is ussed for representing the informmation. The
nuumber system hash various basees. The radix orr base is the tottal numbers of digits that a
paarticular numberr system can acccommodate. Suuppose if the number
n system representing
thee digit from 0 – 9 then the basee of the system is the 10.
A system based on digital logics and circuuits understand
d the digits andd their value
baased on their poosition in the designated
d num
mber. The valuee of digit can be
b evaluated
using
• Position off digit in numbeer system
• The radix/bbase of the num
mber system
The different number system
m that are usedd to implementt and design various
v logic
cirrcuits and system
ms are:
Number Syystem
Decimal Binary
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
In binary number system, each position in a binary number represents a 0 power of the
base (2).
Binary Number 1 1 0 . 1 1 1
Power of Base 22 21 20 2‐1 2‐2 2‐3
Magnitude of each term 4 2 0 0.5 0.25 0.125
Octal number 1 4 0 . 2 1 0
Power of Base 82 81 80 8‐1 8‐2 8‐3
Magnitude of each term 64 32 0 0.25 0.015 0
Decimal number 1 4 0 . 2 1 0
2 1 0 –1 –2
Power of Base 10 10 10 10 10 10–3
Magnitude of each term 100 40 0 0.2 0.01 0
Hexadecimal number 2 A 0 . 2 1 0
2 1 0 –1 –2
Power of Base 16 16 16 16 16 16–3
Magnitude of each term 512 160 0 0.125 0.003 0
The value of digits and letters used in hexadecimal number system is:
The number system and digit associated with these number systems are as follow:
long sequence of binary digits, hexadecimal and octal number system are useful. The
number system conversion is technique to convert one number in base r to another
number system in equivalent base r.
Bit value 1 0 1 1 . 0 1
3 2 1 0 ‐1
Positional weight 2 2 2 2 . 2 2‐2
Product 8 0 2 1 . 0 0.25
Summation 8 + 0 + 2 + 1 + 0 + 0.25 = 11.25
Bit value 0 1 0 0 . 1 0
Positional weight 23 22 21 20 . 2‐1 2‐2
Product 0 4 0 0 . 0.5 0
Summation 0 + 4 + 0 + 0 + 0.5 + 0 = 4.5
2 35
2 17 1
2 8 1
2 4 0
2 2 0
1 0 (35)10 = (100011)2
8 37
8 4 3 (37)10 = (43)8
8 412
8 51 4 (412)10 = (634)8
8 6 3
Chapter 1: Number System |15
16 107
16 6 B (107)10 = (6B)16
16 16 168
16 A 8 (168)10 = (A8)16
Bit value 6 2 3 0 . 4 1
Positional
83 82 81 80 . 8–1 8–2
weight
Product 3072 128 24 0 . 0.5 0.015
Summation 3072 + 128 + 24 + 0 + 0.5 + 0.015 = 3224.515
Bit value 1 2 1 1 . 2 0
3 2 1 0 –1
Positional weight 8 8 8 8 . 8 8–2
Product 512 128 8 1 . 0.25 0
Summation 512 + 128 + 8 + 1 + 0.25 + 0 = 649.25
Bit value 6 A A A . C 1
3 2 1 0 ‐1
Positional weight 16 16 16 16 . 16 16‐2
Bit value 2 3 8 1 . F F
Octal Number
So, (1CA.EF)16 = (0712.736)8
(d) Mathematically, 5 + 5 = 10
Binary:
101
+ 101
1010 = (10)2
Answer: Sum = (1010)2 ; Carry = 1
If the value of a is less than b, then a digit is taken from more significant position, is
known as borrow bit. The binary subtraction is performed on binary bits.
Rules for Binary Subtraction
0–0=0 Difference = 0; Borrow = 0
1–0=1 Difference = 1; Borrow = 0
1–1=0 Difference = 0; Borrow = 0
0–1=1 Difference = 1; Borrow = 1
In binary number systems, the negative numbers are encoded using signed numbers.
The signed numbers require an arithmetic sign. The MSB, most significant bit of a binary
number is used to represent the sign bit, which further indicates that whether number is
positive or negative.