I am trying to understand how floating point numbers work.
I think I would like to check what I know / need to know by evaluating the following: I would like to find the smallest x such that x + 1 = x , where x is a floating point number.
As I understand it, this will happen when x is big enough, so x + 1 closer to x than the next number is higher than x represented by floating point. So intuitively it seems that this will be so when I do not have enough digits in the value. Will this number x then be a number where the value is all 1. But then I cannot understand what was supposed to be an exponent. Obviously, it should have been large (relative to 10 ^ 0, in any case).
c floating-point rounding
sepiroth
source share