title: How to choose epsilon value for floating point?
body: <p>Since we know that <code>0.1 + 0.2 != 0.3</code> due to limited number representation, we need to instead check hat <code>abs(0.1+0.2 - 0.3) &lt; ε</code>. The question is, what &epsilon; value should we generally choose for different types? Is it possible to estimate it depending on the number of bits and the number and types of operations that are likely to be performed?</p>