Ieee 754
Ieee 754
Representation
IEEE-754 Floating Point Number
Representation
Represent 1259.125 in single and
double precision format.
• Step-1 : Convert decimal number to binary
number-
1259 - 10011101011
.125 - .001
1259.125 121259
. 125 = 1011101011 . 001=
10011101011.001
Represent 1259.125 in single and
double precision format.
• Step-2 : Normalize the number-
for single precision format-
1.N. 2E-127
Where-
1259.125 10011101011.001
N- Normalized Number/Mantissa(M) ,
E- Exponent
Represent 1259.125 in single and
double precision format.
• Step-2 : Normalize the number-
for double precision format-
1.N. 2E-1023
Where-
N- Normalized Number/Mantissa(M) ,
E- Exponent
1259.125 10011101011.001
Represent 1259.125 in single precision
format.
• Step-2 : Normalize the number-
for single precision format-
10011101011 . 001
1.N. 2E-127
1259.125 10011101011.001
Represent 1259.125 in single and
double precision format.
• Step-2 : convert it in normalized format(Find
N/Mantissa)
10011101011 . 001
1.N. 2E-127
1.0011101011001 x 210
After comparing we get-
N = 0011101011001
E-127=10
E = 137 OR 10001001
Represent 1259.125 in single and
precision format.
Step-3 : Single Precision Format
Represent 1259.125 in double
precision format.
• Step-1 : Convert decimal number to binary
number-
• Already Done
1259.125 10011101011.001
Represent 1259.125 in double
precision format.
• Step-2 : Normalize the number-
for double precision format-
10011101011 . 001
1.N. 2E-1023
1259.125 10011101011.001
Represent 1259.125 in double
precision format.
• Step-2 : convert it in normalized format
10011101011 . 001
1.N. 2E-1023
1.0011101011001 x 210
After comparing we get-
N = 0011101011001
E-1023=10
E = 1033 OR 10000001001
Represent 1259.125 in double
precision format.
Step-3 : Double Precision Format
BOOTH’S ALGORITHM
• The booth algorithm is a multiplication
algorithm that allows us to multiply the two
signed binary integers in 2's complement,
respectively.
• Types-
I Number II Number Multiplication
+ ve + ve + ve
+ ve - ve - ve
- ve - ve - ve
BOOTH’S ALGORITHM
Using Booth’s Algorithm multiply
7 x 5