Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Welcome to the MPFR Native Interface for .NET Library

The MPFR Native Interface for .NET Library exposes to .NET (through P-Invoke and .NET types) all of the functionality of the GNU MPFR Library (version 4.0.0). It automatically loads at runtime the 32-bit or 64-bit GNU MPFR library that matches the current CPU architecture, thus allowing building Visual Studio Projects for AnyCPU, x86, or x64. It is based on the GNU MP "fat" build which automatically detects the current CPU type, and selects any available assembly language code optimization for that CPU, thus providing optimal performance.


  • On-line help is available here.


The MPFR Native Interface for .NET library can be installed in your Visual Studio solution or project with this NuGet package.

Latest Build

The build file includes the compiled library and the help file (.chm) ready to be included in your project. The x86 and x64 folders contain the compiled GNU MPFR Library and must be copied to the same folder as the Math.Mpfr.Native.dll library. The library targets the .NET Framework 4.0, so it can be used with all newer versions of the .NET Framework. For other builds, see the Releases page.

NOTE: On some systems, the content of the ZIP file may be blocked. To unblock it, right click on the ZIP file, select Properties, and click on the Unblock button, if it is present.

Making a Donation

You can make a donation to support this project by clicking on the PayPal Donate button below. PayPal guarantees your privacy and security. I will not receive any details about your payment other than the amount, and your name.

PayPal - The safer, easier way to pay online!

Thanks to those who have made a donation. This is much appreciated!



Library that exposes to .NET (through P-Invoke and .NET types) all of the functionality of the GNU MPFR Library.







No packages published