You can get a pre-compiled GMP library (DLL) that works under windows (and
can be got at via DllImport directives) at
http://www.cs.nyu.edu/exact/core/gmp/ , so you do not have to build GMP for
windows.
I have used it with good results in one of my applications. I creating a
tiny VS 2005 managed C++ library project that just wraps GMP calls in C#
classes, and have used the resulting DLL in a few C# projects without a
problem.
If you are interested, I can zip up the VS 2005 C++ project source and email
it to you. I only wrote interfaces for the GMP (integer) functions I
needed, but you can easily follow the pattern to access the GMP floating
point functions. You will need the documentation for GMP at
http://www.swox.com/gmp/#DOC to write the interface functions.
"Pete Davis" <pdavis68@[nospam]hotmail.com> wrote in message
news:YM******************************@giganews.com ...
I'm interested in writing some chem/biochem related tools for myself, but
it appears the Decimal format isn't going to quite cut it for some of the
numbers I'm going to be working with. It's max of ~10^28 is a bit shy of
the at least 10^34 precision I know I'll need at the very least.
Actually, I don't need all the precision. I simply need to be able to have
numbers that go that high. If the actual precision is only to 15 or 20 or
so digits, that would be plenty.
Anyway, are there any libraries for .NET that support large decimal
numbers? I know the gmp library does, but it's C and it looks like it's a
nightmare to build under Linux so I imagine it's only harder to build
under Windows.
Thanks.
Pete