.NET 6.0
NuGet\Install-Package BigRational -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package BigRational --version
<PackageReference Include="BigRational" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BigRational --version
#r "nuget: BigRational,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install BigRational as a Cake Addin
#addin nuget:?package=BigRational&version=

// Install BigRational as a Cake Tool
#tool nuget:?package=BigRational&version=

BigRational - Extension for System.Numerics

BigRational is a rational number class for arbitrary-precision arithmetic.
There are no practical limits to the precision except the ones implied by the available memory.
In difference to the usual implementations of such a class, the new system offers a significantly better performance and better memory usage.
This is mainly due to the advantages of a stack machine, which minimizes the need for memory allocations and copies, and which allows to apply more efficient numerical algorithms.

The calculation core is not based on System.Numerics.BigInteger like common .NET implementations of such a class.

Note: This version is already converted to the conventions of the upcoming new .NET 7 number type system. MathR is gone and the functions are now in BigRational. Names have been adjusted to the new conventions.



  • Performance improvements, added low-level vector support.
  • Performance improvements, new Karazuba multiplier
  • Extensions and adjustments for upward compatibility with the new upcoming .NET 7 number type system and its conventions.
  • Performance improvements, many new functions, compatibility with the latest .NET7 number type system.
Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 107 8/2/2022 77 7/19/2022 88 7/6/2022 98 7/2/2022 99 6/23/2022 83 6/23/2022