1.8 x 9.5 ----- 17.10
1 + 0 --- 1
The multiplication of two IEEE FPS numbers is performed similarly. The number 18.0 in IEEE FPS format is:
The number 9.5 in IEEE FPS format is:
Truncated to 24 bits with the hidden bit in (), the mantissa is:
The sum of the exponents is:
E 1000 0011 (4) + 1000 0010 (3) ----------- 0000 0101 + 1000 0001 (-127) ----------- 1000 0110 (+7)
When the fields are assembled in IEEE FPS format, the result is:
Rounding occurs in floating point multiplication when the mantissa of the product is reduced from 48 bits to 24 bits. The least significant 24 bits are discarded.
Overflow occurs when the sum of the exponents exceeds 127, the largest value which is defined in bias-127 exponent representation. When this occurs, the exponent is set to 128 (E = 255) and the mantissa is set to zero indicating + or - infinity.
Underflow occurs when the sum of the exponents is more negative than -126, the most negative value which is defined in bias-127 exponent representation. When this occurs, the exponent is set to -127 (E = 0). If M = 0, the number is exactly zero.
If M is not zero, then a denormalized
number is indicated which has an exponent of -127 and a hidden bit of 0.
The smallest such number which is not zero is .
This number retains only a single bit of precision in the rightmost bit
of the mantissa.