This[0] is an example of how it&#x27;s usually done. It might not be &quot;efficient,&quot; as a == comparison perhaps, but it&#x27;s more correct regardless. With FPs in computational stuff, there is usually an associated scale with a calculation, so you use that scale (rtol=0, atol=scale). Other times, it makes sense for something like<p>abs(a-b)&#x2F;(avg(abs(a),abs(b)).<p>[0] <a href="http:&#x2F;&#x2F;docs.scipy.org&#x2F;doc&#x2F;numpy-1.10.0&#x2F;reference&#x2F;generated&#x2F;numpy.isclose.html" rel="nofollow">http:&#x2F;&#x2F;docs.scipy.org&#x2F;doc&#x2F;numpy-1.10.0&#x2F;reference&#x2F;generated&#x2F;n...</a>