Python Forum
Python Forum
>
Python Coding
>
General Coding Help
> python Calculation error: 39.8-0.1=39.699999999999996
Full Version:
python Calculation error: 39.8-0.1=39.699999999999996
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
wei
Jun-10-2019, 10:11 AM
this is windows system
and execute in DOS command
39.8-0.1=39.699999999999996
Reason:
https://docs.python.org/3/faq/design.htm...inaccurate
buran
Jun-10-2019, 10:17 AM
floating point calculations
.
wei
Jun-10-2019, 10:22 AM
Thank you,buran
Python Forum
>
Python Coding
>
General Coding Help
> python Calculation error: 39.8-0.1=39.699999999999996