So I have a list of floating numbers, some of them have round off errors and appears in the form 0.3599999
. It is trivial to detect by convert it to string and see if there is a bunch of 999
following. I wonder how a python hacker will do for this or if there is a mathematical way to do this.
Thanks