Sei sulla pagina 1di 9

DEPARTMENT OF TECHNICAL EDUCATION

ANDHRA PRADESH
Name :A Rajeswara Rao
Designation : Head
Branch : Computer Engg.
Institute : GMR Polytechnic, Karimnagar
Year/Semester : III Semester
Subject : Computer Architecture
Subject Code : CM-303
Topic : Information Representation,

Arithmetic operations
Duration : 50 min
Sub. Topic : Floating point representation
Teaching Aids to be used CM303.19
: Animation clips & Images, PPT1
Objective

On completion of this period, you would be able to


know

• What is floating point representation

CM303.19 2
1.Floating point representation
The number which is shown as a combination of two parts

1.Mantissa

2.Exponent

In the form of Mantissa e Exponent.

Where the mantissa is a real number followed by the

character e or E followed by an integer constant.

CM303.19 3
Use of floating point representation

It can represent very small and very large numbers

• Eg:
1. The no. 0.000010012 is represented as
0.1001 e –100 where base is 2
2. The no. 11010110002 is represented as
0.1101011 e +1010 where base is 2
3.The no. 1234500010 is represented as
0.12345 e +08
4.The no. 0.00012310 is represented as
0.123 e -03
CM303.19 4
Normalization:
• If the representation is of the form
b0..b1b2b3b4b5b6b7

• It is said to be in normalized form


where b0 represents sign bit
Eg:
12.345 e +03 is normalized as 0.12345 e +05
-11.01011 e –011(B)is normalized as
1.1101011 e 1 01
Sign bit Sign bit

CM303.19 5
Storage considerations :
• This representation requires two registers or two
memory locations for each number, one holding
mantissa and the other exponent.
eg:
The no. 0.1101011 e +1010 is represented as

01101011 01010 01101011


01010
Reg. A Reg. B
memory
(i)
(ii)

CM303.19 6
Summary

In this class , you have learnt …

• Floating point representation


• Example
• Normalization
• Storage considerations

CM303.19 7
Frequently Asked Questions

• 1. Explain floating point representation with


an example?

CM303.19 8
QUIZ
1.Which one of the floating point representation is correct ?

a) Mantissa exponent

b) Exponent Mantissa

c) Mantissa e Exponent

d) exponent m mantissa

CM303.19 9

Potrebbero piacerti anche