Recall that a floating-point number can be expressed as
(−1)s (1 + f ) 2e
where s, f and e are binary numbers. Suppose that the sign is 1 bit long, the mantissa
is 12 bits long, and the exponent has 10 bits.
Recall that s is the sign indicator, f the mantissa (or fractional part), and e the
(signed) exponent.
(a) What is the largest positive number in the computer system? Evaluate using
Matlab.
(b) Take s = 1, f = 110011010000, and the unsigned exponent t = 0010010111.
What is the corresponding decimal value of this floating-point number? Evaluate
using Matlab