Python Forum

Full Version: Calculation Question.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

I used Anaconda 3, and I found wrong calculation result.

>>> 4.4 / 100
0.044000000000000004

Is this bug of Python?

Or did I use it wrong?

Please reply. Thanks.
Floating point in every language I know is an approximation. A very good approximation, but an approximation nonetheless.

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