4 ms·
> I'm not referring to fixed point, but fixed-size representation. I'm still not sure what you mean as any IEEE floating point (which in reality all anyone use
by jimktrains2 11y ago
> I'm not referring to fixed point, but fixed-size representation.
I'm still not sure what you mean as any IEEE floating point (which in reality all anyone uses) is fixed-size. If you decide to truncate, round, do w/e to this value, you may still not get exactly the same answer for similar computations or even the same computation on different machines. There isn't a reason you can't (well, shouldn't) do float_val == 0.0 -- it won't work in all circumstances.
Please explain your method of making sure float_val == 0.0 while retaining the essence of being floating point (i.e. not using fixed-point).