Jul-09-2023, 07:14 AM
(This post was last modified: Jul-09-2023, 07:14 AM by Gribouillis.)
The floating point numbers limitations are not related to the Python language. They are an intrinsinc limitation of the fact that computations are made with a finite precision. All the other usual programming languages have the same limitations and most of them use the same IEEE754 representation of floating point numbers. This includes C++ as well as Python. The only way to get more precise results is to use a multiprecision library such as gmp, but these computations have the same limitations, only at a different order of magnitude.