How to switch default floating point numbers accuracy to another, maybe custom? I need this, cause I do some calculations and I see that I should increase default float point accuracy.
How to switch default floating point numbers accuracy to another, maybe custom? I need
Share
I’ve recently had to deal with this problem and the mpmath was perfect. It is pure python, under a BSD license.
It is not too much slower, and it can leverage the gmpy library if installed (a
C-coded Python extension modules that support fast multiple-precision arithmetic).