Rationals 1.0.0
Implementation of rational number arithmetics for .NET
Supported features:
- implicit conversions - rationals integrate seamlessly with other number types
- unlimited precision - rationals use BigInteger inside
- canonical form - each rational can have its canonical form (irreducible fraction where denominator is always positive)
- comparison & equality
- multiple formatting options - ToString("C") (canonical form), ToString("W") (whole + fractional part), or normal fraction format
Example usage:
Rational left = (Rational) 1 / 2;
Rational right = (Rational) 1 / 4;
Rational sum = left + right; // equals to: 3 / 4
See the version list below for details.
Install-Package Rationals -Version 1.0.0
dotnet add package Rationals --version 1.0.0
<PackageReference Include="Rationals" Version="1.0.0" />
paket add Rationals --version 1.0.0
#r "nuget: Rationals, 1.0.0"
Dependencies
This package has no dependencies.
Used By
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Rationals:
Package | Downloads |
---|---|
Peachpie.Library
Peachpie PHP language library functions.
|
|
CryptoExchangeClient
Clients for multiple cryptocurrency exchanges. All clients have a shared interface for common actions.
|
|
DelSquared.Radicals
.NET implementation of radical expressions enabling radical expression arithmetic.
|
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Rationals:
Repository | Stars |
---|---|
peachpiecompiler/peachpie
PeachPie - the PHP compiler and runtime for .NET and .NET Core
|