[fpc-devel] Arbitrary-precision arithmetic unit
ppopov99 at gmail.com
Sat Feb 28 23:43:18 CET 2009
I've missed the beginning of the thread, so ignore if not relevant.
There is a very nice library: GNU MP (multiple precision arithmetic
library) which supports arbitrary precision floats, arbitrary size
integers and arbitrary size rational numbers. Also, the API is really well
I've used it for years and it is really reliable. It is written in pure C,
so you can compile it on whatever machine you have. I am not sure if it is
optimized for GPU cards, etc.
If anyone needs native compilation on NT, I have adapted an older version
for compilation with Visual Studio, along with pascal interface. It goes
standard on most linux distributions (libgmp.so)
On Sat, 28 Feb 2009 09:03:33 -0600, Michael Van Canneyt
<michael at freepascal.org> wrote:
> On Sat, 28 Feb 2009, Alexander Klenin wrote:
>> Is there such a thing for FPC?
>> I need it for my project and I have found is this:
>> Which seems unmaintained, in french, has horrible API,
>> and is actually a wrapper around C library.
>> Seeing as FPC contains at least three expression-parsing-and-evaluation
>> libraries, I think one "long arithmetic" unit would not hurt.
>> So, should I write one or did I just not searched in the right place?
> There is one in the contributed units:
> mpcalc from Franco Milano. It has been around for quite some time.
> fpc-devel maillist - fpc-devel at lists.freepascal.org
More information about the fpc-devel