Module 2 Part2
Module 2 Part2
Basic steps:
– Subtract the exponents E1 and E2 and add the BIAS.
– Divide M1 by M2 and determine the sign of the result.
– Normalize the resulting value, if necessary.
Problem:1. Consider the following 12-bit floating-point number
representation format that is manageable for working through numerical
exercises. The first bit is the sign of the number. The next five bits represent
an excess-15 exponent for the scale factor, which has an implied base of 2.
The last six bits represent the fractional part of the mantissa, which
has an implied 1 to the left of the binary point.
Perform Subtract and Multiply operations on the operands
Solution: The required operations are performed as follows:
• Subtraction
According to the Add/Subtract rule, we perform the following four
steps:
1. Shift the mantissa of B to the right by two bit positions, giving 0.01101010.
2. Set the exponent of the result to 10001.
3. Subtract the mantissa of B from the mantissa of A by adding mantissas, because
B is negative, giving