How do you determine the fudge factor?
Eg if you compare (x + 1.2) + (x + 2.3) < (2*x + 3.6) that goes wrong for big enough x.
Re:How to compare floats in Python
by wheelerof4te on Thursday March 31, 2022 @06:14AM
(#30865561)
Use the round function in that case.
You don't. At least, not exact numbers. You almost always have to round the numbers up, or just aproximate the value.
So, while
this is always correct: