You are on page 1of 14

Floating point Numbers

Floating Point Numbers

• A floating-point number (or real number) can represent a very large


or a very small value.
• A floating-point number is typically expressed in the scientific
notation, with a fraction (M), and an exponent (E) of a certain radix
(r), in the form of M×r^E.
• Decimal numbers use radix of 10 (M×10^E); while binary numbers
use radix of 2 (M×2^E).
• Representation of floating point number is not unique. For example,
the number 55.66 can be represented as 5.566×10^1, 0.5566×10^2,
0.05566×10^3, and so on.
• m x re
(m-Significand/Mantissa); r-radix; e- exponent
Floating Point Arithmetic Operation

• Represent 6.3 in FP single precision format


• Step1 =110.0100
• Step2 Normalise =1.100100*22
• Step 3 Bias =single precision format
ADD 127 to exponent
• 1.100100*2 129
• Represent in IEEE format

0 10000001 1100100000000000000000
• Represent 6.3 in FP double precision format
• Step1 =110.0100
• Step2 Normalise =1.100100*22
• Step 3 Bias =double precision format
ADD 1023 to exponent
• 1.100100*2 1025
• Represent in IEEE format

0 1100100000000000000000
Floating point add or sub
Flaoting point multiplication
Floating point division

You might also like