Reputation: 10081
Is there any way of compiling Python's interpretter in such a way that it could use a native (c) arbitrary precision library so that Python could use arbitrary precision as if it was a normal number instead of having to use the decimal class?
EG.
>>0.00000001 + 1
1.00000001
Upvotes: 3
Views: 746
Reputation: 21055
If you're unsatisfied with the builtin decimal
, you can try several libraries that implement higher precision floating point numbers. Most of them, however, are not exactly "native" - you might clarify what you mean by that and why you need it.
ctypes
)Upvotes: 3