A binding of MPFR and MPIR (Multiple Precision Floating-Point and Integer) for .NET.
This binding is up to date with version 4.2.1 of the mpfr library.
- Install Visual Studio 2022.
- Clone this repository locally.
- Open
MpfrDotNet.sln
with Visual Studio 2022. - Select the
Debug
orRelease
build in the toolbar. - Rebuild the solution (F5 or from the Build / Rebuild Solution menu).
Resulting files are in the MpfrDotNet\bin\x64
subdirectory:
- mpfr.dll, for multiple precision floating-point support.
- mpir.dll, for multiple precision integer and rational support.
- The MpfrDotNet assembly.
This project is also available as a package. See the right pane of the project page for links.
The package includes:
- In the
MpfrDotNet
namespace.mpfr
static class with bindings to almost all functions listed in the MPFR documentation.mpfr_t
an implementation of a Multiple Precision Floating-Point type.
- In the
MpirDotNet
namespace.mpir
static class with bindings to almost all functions listed in the MPIR documentation.mpz_t
an implementation of a Multiple Precision Integer type.mpq_t
an implementation of a Multiple Precision Rational type.mpf_t
an implementation of a Multiple Precision Floating-Point type. This type has less features than the more completempfr_t
.