Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.6% downloads on nuget.org

nuget.org : rationals

Implementation of rational number arithmetic for .NET with arbitrary precision. 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) - separate whole and fractional part - any rational number can be separated into a whole part (integer quotient aka result of integer division) and fractional part (reminder of the integral division aka result of modulo operation) - comparison & equality - multiple formatting options - ToString("C") (canonical form), ToString("W") (whole + fractional part), or normal fraction format - continued fraction expansion - expand rational numbers to continued fraction (sequence of coefficients), construct rational numbers from sequence of continued fraction coefficients - rational number approximation - approximate floating point numbers (decimal, double, float) as rational numbers with customizable tolerance Example usage: Rational left = (Rational) 1 / 2; Rational right = (Rational) 1 / 4; Rational sum = left + right; // equals to: 3 / 4

Registry - Homepage - JSON
purl: pkg:nuget/rationals
Keywords: arbitrary-precision, biginteger, bigrational, c-sharp, coefficients, continued-fractions, fraction, fractional, rational-numbers, rational-number-arithmetic, rationals, numbers
License: MIT
Latest release: over 5 years ago
First release: over 9 years ago
Dependent packages: 2
Downloads: 755,412 total
Stars: 76 on GitHub
Forks: 12 on GitHub
Total Commits: 122
Committers: 6
Average commits per author: 20.333
Development Distribution Score (DDS): 0.295
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: 11 days ago

    Loading...
    Readme
    Loading...