Rationals
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
Install
dotnet add package Rationals --version 1.0.0
Install-Package Rationals -Version 1.0.0
<PackageReference Include="Rationals" Version="1.0.0" />
Frameworks
No framework metadata available.
Dependencies
No declared dependencies.
Adoption guide
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.
No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.