Floating-Point Multiplication
5-31
Data Formats and Floating-Point Operation
Example 5–11. Floating-Point Multiply Between Positive and Negative Numbers
Let:
α
= 1.0 x 2
α
(
exp)
= 01.00000000000000000000000 x 2
α
(
exp)
b = –2.0 x 2
b(exp)
= 10.00000000000000000000000 x 2
b(exp)
Then:
01.00000000000000000000000
×
2
α
(
exp)
x 10.00000000000000000000000
×
2
b(exp)
1110.0000000000000000000000000000000000000000000000
×
2
(
α
(
exp) + b(exp))
The result is:
c = – 2.0 x 2
(
α
(
exp) + b(exp))
Example 5–12. Floating-Point Multiply by 0
All multiplications by a floating-point 0 yield a result of 0 (
f = 0, s = 0, and
exp = –128).