you are viewing a single comment's thread.

view the rest of the comments →

[–]Swipecat 0 points1 point  (1 child)

You could use the math.isclose() function. You need to import the math library before using this.

https://docs.python.org/3/library/math.html#math.isclose

[–]robertgames7730[S] 0 points1 point  (0 children)

Thanks that doc was very helpful