high precision calculation in numpy

How to perform high precision calculation in numpy? By high precision I mean 100 precision in decimal.

Upvotes: 3

Views: 2366

Answers (1)

Josh Karpel
Josh Karpel

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

Related Questions