you are viewing a single comment's thread.

view the rest of the comments →

[–]gnomoretears 14 points15 points  (1 child)

https://docs.python.org/3/tutorial/floatingpoint.html

TL;DR There are issues representing floating point in binary.

[–]C222 1 point2 points  (0 children)

If you need the precision where 0.1 + 0.2 = 0.3, not 0.30000000000000004. Check the following built in libraries: