Reputation: 111
How to perform high precision calculation in numpy? By high precision I mean 100 precision in decimal.
Upvotes: 3
Views: 2366
Reputation: 2145
Numpy doesn't have arbitrary floating-point precision. You'll want to use decimal from the standard library, or a third-party library like mpmath. Both of those libraries use C extensions for their internal calculations, so they should be fairly fast.
Upvotes: 2