In Numerical Computing With Matlab it is stated that(Under the IEEE standard): "the smallest positive normalized floating-point number has f = 0 and e = −1022. The largest floating-point number has f a little less than 1 and e = 1023."
We have realmin = $2^{-1022}$ and realmax = $(2-eps)*2^{1023}$
where eps = $2^{-52}$
My question is why does the computation for realmax involve an extra $(2-eps)$ term and not realmin? Realmax ends up being approximately equal to $2^{1024}$ but this value is larger than $2^{1023}$ thus violating the maximum allotted number of bits for the exponent. (11 bits for exponent in IEEE)
You can see realmin is $2^{-1022}$ and not any value lower is allowed. Why is this not the case for realmax?
2 - eps. – Ben Grossmann Jan 17 '20 at 08:36