python Calculation error: 39.8-0.1=39.699999999999996 - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: python Calculation error: 39.8-0.1=39.699999999999996 (/thread-19013.html) |
python Calculation error: 39.8-0.1=39.699999999999996 - wei - Jun-10-2019 this is windows system and execute in DOS command 39.8-0.1=39.699999999999996 Reason: https://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-inaccurate RE: python Calculation error: 39.8-0.1=39.699999999999996 - buran - Jun-10-2019 floating point calculations. RE: python Calculation error: 39.8-0.1=39.699999999999996 - wei - Jun-10-2019 Thank you,buran |