Download math - Python: Why does .1 + .1 + .1 - .3 not equal 0? - Stack Overflow book pdf free download link or read online here in PDF. Read online math - Python: Why does .1 + .1 + .1 - .3 not equal 0? - Stack Overflow book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
See this article: David Goldberg - What Every Computer Scientist Should Know About Floating-Point Arithmetic Essentially, this is a well known issue with floating point arithmetic. You could use the round function, and round to a very small digit for practical precision. round(-5.551115123125783e-17, 10) will still return 0, which is what you want.
Read : math - Python: Why does .1 + .1 + .1 - .3 not equal 0? - Stack Overflow pdf book online Select one of servers for direct link: |
---|