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 done:

http://gmplib.org/index.html

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)

Cheers,
Peter Popov


On Sat, 28 Feb 2009 09:03:33 -0600, Michael Van Canneyt <[email protected]> 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:

  http://pauillac.inria.fr/~quercia/cdrom/bibs/numerix.tar.gz

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.

Michael.
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel


_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to