Quote:Original post by Fred304Lots of rules that apply to real numbers do not apply to floats
True, and let's not forget the fabuloustic property of some chipsets:
float a = GetSomeValue();
float b = a;
assert (a == b);
printf("%s", "Oh, look, a side-effect");
assert (a != b);
Quote:
Avoid floats whenever precise results are necessary.
Unless you prove the result precision to be within a tolerance range.