Tag Info

How to determine the set of real numbers corresponding to a given floating point number?

Short answer: If the mantissa is not all ones, the next floating-point number is $1$ ulp more. E.g. $1.1000_b\times 2^7\to1.1001_b\times 2^7$ ($192_d\to200_d$), the difference is $2^{7-4}=8$. If the ...
• 4,510
1 vote
Accepted

Floating-point rounding - bit patterns of values that are halfway between two possible results

Let us express any given binary number without a floating point in the following form \underbrace{XX\cdots X}_{i\text{ digits}}~Y~\underbrace{ZZ\cdots Z}_{j\text{ digits}}{}_2=x\times2^{j+1} + Y\...
• 34.7k

Top 50 recent answers are included