4.4_1 New Floating Point.pptx
4.4_1 New Floating Point.pptx
ORGANISATION
Floating Point
Floating Point
🔵 Digital Design
► Combinational logic design
► Sequential logic design Concepts covered
★ Floating Point
🔵 Floating Point Representation
🔵 Computer Organisation
► Architecture (microprocessor
instruction set)
► Microarchitecture (microprocessor
operation)
FLOATING POINT
Not Just Integers
🔵 Fixed point notation is where the decimal point is fixed and numbers to the right
of decimal point are the fraction portion and to the left is the integer portion.
► Limited by the digits used
► Not suitable to represent very small are very large numbers
► Here binary point is implied and the number of bits used is decided before
hand
► Fixed point
► Floating point
🔵 Floating point notation is used to represent real numbers which are from small
to large numbers
🔵 This representation is to include very small numbers like 1.0 x 10-23 and very
larger numbers like 9.546 x 1012
🔵 FP Representation:
s (BE-Bias)
Bias = 127 for SP
N = (-1) * (1+.M)*2 Bias = 1023 for DP
FLOATING POINT
FP Example
Solution:
Sign = 0; Positive number
Biased Exponent = (1000 0110)2 = 134;
Actual Exponent = 134 – 127 = 7
Mantissa = (1. 1100 10…000)2 = 1.78125 (1. is implicit)
Solution:
Sign = 1;
Biased Exponent = (0111 1100)2 = 124;
Actual Exponent = 124 – 127 = -3
Mantissa = (1. 0100 00…000)2 = 1.25 (1. is implicit)
1 100 0000 0100 1101 0010 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
Smallest value
Bias Exponent: 00000001
⇒ Actual Exponent = 1 – 127 = –126
Fraction: 000…00 ⇒ significand = 1.0
±1.0 × 2–126 ≈ ±1.17549… × 10–38
Largest value
Biased Exponent: 11111110
⇒ Actual Exponent = 254 – 127 = +127
Fraction: 111…11 ⇒ significand ≈ 2.0
±2.0 × 2+127 = 2-128 ≈ ±3.4028… × 10+38
FLOATING POINT
Special Cases
Sudarshan T S B. Ph.D.,
Department of Computer Science & Engineering
[email protected]
+91 80 6666 3333 Extn 215