logoalt Hacker News

fouronnes3yesterday at 11:55 AM0 repliesview on HN

You should use two tolerances: absolute and relative. See for example numpy.allclose()

https://numpy.org/doc/stable/reference/generated/numpy.allcl...