dotnet add package BigRational --version                
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.
<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 and Polyglot Notebooks. 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.
  • NET6 + NET7 release support.
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.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 871 1/20/2023 2,772 8/2/2022 378 7/19/2022 390 7/6/2022 405 7/2/2022 391 6/23/2022 381 6/23/2022