16. More Floating Point Examples
Problem J.7Below is a list of floating-point numbers. In single precision, write down each number in binary, in decimal, and give its representation in IEEE arithmetic.
- The largest number less than 1.
1 - 2-24 = 0.99999994 = 0 01111110 11111111111111111111111
- The largest number.
(a)*2128 = 3.4028235e+38 = 0 11111110 11111111111111111111111
- The smallest positive normalized number.
2-126 = 1.1754944e-38 = 0 00000001 00000000000000000000000
- The largest denormal number.
(1 - 2-23)*2-126 = 1.1754942e-38 = 0 00000000 11111111111111111111111
- The smallest positive number.
2-149 = 1.4012985e-45 = 0 00000000 00000000000000000000001