http://qs321.pair.com?node_id=1212561


in reply to Re^2: While loop with addition goes weird (binary float rounding error)
in thread While loop with addition goes weird

We can almost always ignore floating-point errors and round our results with printf. Unfortunately there is no "simplistic" way to recognize the rare cases where this is a bad idea (Or what to do about it if you really have one). The documents already cited are not easy to read! Be assured that they to not require knowledge of any math beyond elementary algabra - only a commitment to learn.
Bill